Docker
What are the various commands of docker file?
- From
- It defines which image to download and start from.
- Entry point
- Specifies the starting of expression to use when starting your container.
- CMD
- Command specifies the whole command to run.
- ADD
- When we want to add some files ADD statement is used. Add new files from system to the file system of image, example local files: ADD run.sh/ run.sh Tar Archieves : ADD project tar.
- COPY
- Copy the current directory contains into a container at current directory. Copy Between different environments Dev/Stage/Prod etc.
What is bind mount?
- They will rely on host machine operating system and directory structure. A route from host computer must be supplied.
What is docker persistent volume?
- Docker volumes provide persistent storage.Docker manages data separately.This can be shared with multiple containers separately.CLI can access docker volume.
What is docker Prune command?
- Docker prune command Is used to Remove all containers, network images, et cetera.
Do we have docker clone command?
- No
What is Docker Run Command?
- Docker run is used to run a command.
What is the Docker file and Docker compose file?
- Docker file is a text file that contains instructions to build a docker image.
- Docker Compose File helps us to run multi container applications using an XML configuration.It defines how container should be configured.
Comments
Post a Comment