Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 1.83 KB

docker.org

File metadata and controls

24 lines (22 loc) · 1.83 KB

Docker

Command line

CommandDescription
docker run <image>Runs a docker image
docker image lsLists all images
docker container ls --allLists all containers
docker build --tag=<name>Creates a docker image
docker run -p 4000:80 <tagname>Runs the docker image at port 4000.
docker container stop <id>Stops the container <ID> from running.
docker push username/respository:tagUploads the tagged image to the repository.
docker run -p 4000:80 username/respository:tagPull and run the image from the remote repository
docker-compose upUploads image.
docker ps -aLocate the ID or NAME of a specific container
docker remove <ID-NAME> <ID-NAME>Remove a container.
docker rm --rm <image-name>Removes a specific image.