Skip to content

jeffman78/docker-cheat-sheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 

Repository files navigation

docker-cheat-sheet

Another Docker Cheat Sheet

Why

A quick/pretty basic Docker cheat sheet. Other ones (see Links) are insteresting but I wanted to start my own.

##Prerequisites

None (at least for the time being). This section will be expanded as time goes on.

Installation

For the time being, I assume you have Docker installed and running. On my side, I'm currently playing with Scaleway.

QuickStart

Start a container with an interactive shell

docker run --rm -i -t ubuntu /bin/bash

** --rm : the container will be silently discarded when disconnecting

Containers

Lifecyle

Others commands

some docker code

Images

The "registry" is a place where local images are stored.

  • docker images lists images available in the local registry
  • docker rmi remove a specific image from the local registry More infos about managing docker images

Dockerfile

Dockerfile syntax

Using Dockerfile

  • docker build -t reponame/name . build a new image based on the Dockerfile located in the current directory. ** The -t option is optional (repository name/name) - An optionnal "tag" can be specified.

Misc

Misc infos. Keep away the usual mess.

Todo

More stuff needs to be added here ! :-)

Links & Credits

Credits

Links

  • Nothing (at least for yet)

About

Docker Cheat Sheet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published