Skip to content

Instantly share code, notes, and snippets.

@rdenadai
Last active January 15, 2016 11:56
Show Gist options
  • Save rdenadai/bb94ff5f5af897b180e3 to your computer and use it in GitHub Desktop.
Save rdenadai/bb94ff5f5af897b180e3 to your computer and use it in GitHub Desktop.
Install docker
wget -qO- https://get.docker.com/ | sh
Create a 'Dockerfile'
Inside the folder where the docker file is, create a image
docker build -t <img name> .
Start the docker image file created above
docker run --name=<name> -d <img name>
Stop a docker container
docker stop <container id>
docker rm <container id>
Delete a docker image
docker rmi <img name>
Check if any docker images are running
docker ps -as
In case docker daemon is not running, start it
docker -d &
A list of all images installed
docker images
Pull a docker image from the list of image above
docker pull <img name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment