What is the difference between Docker compose and Docker file when I can use volume and configs in Docker compose

0 votes
What is the difference between Docker compose and Docker file, when I can use volume and configs in Docker compose?
Oct 23, 2020 in Docker by anonymous
• 19,580 points
289 views

1 answer to this question.

0 votes
Docker-compose is in YAML and the docker file uses commands like run, from, entry point, etc.  

Docker compose is basically used to create app, web, DB containers at once. Docker file is to create an image
answered Oct 23, 2020 by Kusha

Related Questions In Docker

0 votes
1 answer

What is the difference between “expose” and “publish” in Docker?

Basically, you have three options: Neither specify EXPOSE nor -p -> ...READ MORE

answered Jul 18, 2018 in Docker by Nilesh
• 7,020 points
1,905 views
0 votes
3 answers

What is the difference between a Docker image and a container?

Images are read-only templates that contain a ...READ MORE

answered Aug 10, 2020 in Docker by Vishal
• 260 points
4,677 views
0 votes
1 answer
+1 vote
1 answer

what is the difference between docker swarm and kubernetes

Both Kubernetes and Docker Swarm are important ...READ MORE

answered Sep 24, 2019 in Docker by Sirajul
• 58,990 points
1,004 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,100 points
1,049 views
0 votes
1 answer