dockers Flashcards
what is docker ?
docker is an open source software that allows people to easily create, deploy, and run applications by using containers (virtual-machine-as-code).
what is docker image
docker image: its a binary that allows docker to kick off a machine with all its pre-defined settings (docker run)
what is docker container
docker container is an instance of an image. An image can have multiple instances running at the same time all executing same code however can have different ip addresses and data volume access.
what is docker repository
docker repository is a repo where all images are stored and fetched from. docker hub is public repo. similarly companies can have their own docker repository. e.g. jfrog
what is dockerfile
dockerfile: is a text file that contains all instructions to pull a base image and execute set of instructions to create desired image and container at run time
example:
what is docker volumes ?
mount volumes: instead of storing files on dockers, you can mount volumes on it and access files.