Command | Description |
---|---|
docker run <image> | Runs a docker image |
docker image ls | Lists all images |
docker container ls --all | Lists 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:tag | Uploads the tagged image to the repository. |
docker run -p 4000:80 username/respository:tag | Pull and run the image from the remote repository |
docker-compose up | Uploads image. |
docker ps -a | Locate 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. |