docker run creates and starts a container in one command
docker rm deletes a container
docker rm $(docker ps -aq) removes all docker containers
docker start starts a container
docker stop stops a running container
docker stop $(docker ps -aq) stops all running containers
docker ps shows running containers
docker ps -a shows running and stopped containers
docker stats shows container's resource usage stats
docker diff shows changed files in the container's file system
docker exec to execute a command in a container
docker images shows all images
docker build (--tag={tag}) creates image from Dockerfile
$ dockerbuild -t <tag> -f <filename> .docker rmi removes an image
docker rmi $(docker images -q) remove all images
docker history shows history of an image
docker tag tags an image to a name
-
What is docker compose ? How is it different than Dockerfile?
-
What is the difference between the COPY and ADD commands in a Dockerfile?
-
What's health checks in docker compose?
- How to override entrypoint using docker run?
$ docker run --entrypoint=python $Docker_Image $script- Difference between container vs pods?
$ docker build -t <tagname> -f <filename> .