amazon web services - Docker in docker on AWS Elastic Beanstalk -


I have a docker container running on elastic beanstock. From inside of this container, I used the Doker daemon running on the host OS I want to use other containers to run.

As I have read here, it is possible if the first container is brought by:

Docker Run-VV / / v / run / Docker .sock: / var

Yes, its possible, but YMMV is a rundown here:

Dockerrun.aws.json allows you to map arbitrary routes in your container path. Therefore, you can map your host to a / var / run (which contains docker.sock ) in a temple path. These steps are:

Make sure you have got a staging directory

in your dockerfile:

  RAN Mkadir / run-data   

Ensure that DocAran.ACS.S.S. "/ App / log", "volume": [{"host directory": "/ var / run": "/" "," Container directory ":" / run-data "}}}

Then, to run the command in / run-data /docker.sock The appropriate docker will be socket. From this point on, you can refer to the Doker API and talk directly with it

Happy Docking!


Comments