Can I run docker-compose inside a container?

0 votes
How do I use the docker-compose command within a container? Is this possible?
Jun 10 in Docker by Namik
• 800 points
52 views

1 answer to this question.

0 votes

Compose can also be run inside a container, from a small bash script wrapper. 

To install compose as a container run this command:

$ sudo curl -L --fail https://github.com/docker/compose/releases/download/1.24.0/run.sh -o /usr/local/bin/docker-compose

$ sudo chmod +x /usr/local/bin/docker-compose
answered Jun 10 by Sirajul
• 5,960 points

Related Questions In Docker

+2 votes
11 answers
0 votes
1 answer

How to run a docker command from inside the container?

You must have come across the /var/run/docker.sock file, ...READ MORE

answered Jun 28, 2018 in Docker by Sophie may
• 9,430 points
267 views
0 votes
1 answer

How do I run a docker image as a container?

You can run an image depends on whether you ...READ MORE

answered Sep 7, 2018 in Docker by Damon Salvatore
• 5,490 points
56 views
0 votes
1 answer
0 votes
1 answer
0 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
• 56,160 points
99 views
0 votes
1 answer
0 votes
1 answer