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 2,802 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,460 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,350 points
1,566 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,020 points
2,714 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,460 points
10,845 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP