Docker Flashcards
What is a docker container?
Smallest standalone unit of runnable software, along with all its required dependencies. It can be run on any docker platform.
What is a docker container image?
A Docker container image is a lightweight, standalone, executable package of software that includes everything needed to run an application: code, runtime, system tools, system libraries and settings.
What are three commands common to container, and to images in docker
ls –> list all images/containers
rm –> remove said image/container
inspect –> print lots of info about image/container
what does docker system prune delete
unused containers, dangling images, unused networks
which docker command creates and starts a container from an image?
docker run
which option will you use to delete a container automatically after it is shut down
docker rum –rm
U need to specify these two options when u want to interact with your container through a terminal
- i –> –interactive
- t –> –tty – attach a terminal to STDIN and STDOUT of the container.
option to run a container in the background (OR) not have a terminal attached to our container.
docker run -d
–detach