bash script Write a script that will automatically provision 3 docker containers

0 votes
Dear community,
How do I create a bash script, which creates three Docker images and run containers from them, configures Nginx?
The three docker containers should be able to ping each other regardless of where it is being deployed.
Aug 16, 2020 in Docker by anonymous
• 120 points

edited Aug 17, 2020 by MD 771 views

1 answer to this question.

0 votes

Hi,

It is very simple if you know the basic concepts of docker. You don't need to create one bash script for that. You can use docker-compose to do that. Write your requirement in your docker-compose file and then run the docker-compose command using one bash script. If you really want to do with a bash script. 

answered Aug 17, 2020 by MD
• 95,160 points

Related Questions In Docker

0 votes
0 answers
0 votes
1 answer

Docker: Add a restart policy to a container that was already created

In recent versions of docker (as of ...READ MORE

answered Jul 30, 2018 in Docker by Kalgi
• 52,310 points
720 views
0 votes
2 answers
+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,120 points
1,142 views
0 votes
1 answer

How can I connect a docker container to two docker networks that I have created?

Hi@akhtar, It's correct that the network argument of ...READ MORE

answered Mar 23, 2020 in Docker by MD
• 95,160 points
994 views