Repo's for Learning Docker
brew cask install docker
docker --version
docker pull <imageName>
- Pulls images from container registrydocker push <imageName>
- Push images to container registrydocker images
- List all Local imagesdocker cp foo.txt <container-name:/location>
- Copies files to a running docker imagedocker ps
- List all running containersdocker ps -a
- List all containers statesdocker build -t <tag-name> .
- Builds a docker imagedocker run --name <container-name> -d -p host-port:container-port <image-name>
- Runs a container in deamon modedocker stop <container-id>
- Stops a running container in demon modedocker kill <container-id>
- Kills a running container in demon modedocker start <container-id>
- Starts a stopped container in demon modedocker rm <container-id>
- Removes a stopped containerdocker image rm <image-id>
- Removes an imagedocker container ls
- List all running containersdocker rmi $(docker images -a -q)
- Docker remove all images