Updated docker-compose support

Hey,

first of all, thank you @justin8 for sharing this. Our current application is based on your approach while we wait for first class multicontainer support.

Disclaimer: This reply is not intended as a request to fix this feature, as we understand it has been released on your good will, just to inform the community of a possible bug.

We are experiencing problems when trying to run this under the last version of resin.io available in the dashboard. Using the latest commit on justin’s github we obtain:

  • On version Resin OS 2.0.6+rev3

Everything works as espected :slight_smile:

  • On version Resin OS 2.0.8+rev1

It does not work at all, producing the log at the end of the post. I also hangs the application forever, it does not responds to restarts, reboots and freezes the device if moved to another application.

We are using the same exact setup, so we the only change is the resin version (this implies a major bump on the supervisor version from 4.3.1 to 5.1.0). We are not even sure if the error is on our end (i.e. network setup)…

The log, as promised. Many errors and warnings are common, and are also present in the working version without being an issue, the problem is when trying to fetch images from the docker registry:

19.07.17 18:48:15 (+0200) WARN[0003] Error getting v2 registry: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io: no such host 

Obviously the device has internet access…

full log:

19.07.17 18:48:11 (+0200) ++ find docker-compose.yml static-server transmission -maxdepth 0 -type d
19.07.17 18:48:11 (+0200) + containers='static-server
19.07.17 18:48:11 (+0200) transmission'
19.07.17 18:48:11 (+0200) + mount -o bind /data /var/lib/docker
19.07.17 18:48:11 (+0200) + docker info
19.07.17 18:48:11 (+0200) + wrapdocker echo
19.07.17 18:48:12 (+0200) INFO[0000] New containerd process, pid: 117
19.07.17 18:48:12 (+0200)             
19.07.17 18:48:13 (+0200) INFO[0001] Graph migration to content-addressability took 0.00 seconds 
19.07.17 18:48:14 (+0200) INFO[0001] Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address version=1.11.1
19.07.17 18:48:14 (+0200) INFO[0002] API listen on /var/run/docker.sock           
19.07.17 18:48:14 (+0200) ERRO[0002] Couldn't run auplink before unmount /var/lib/docker/tmp/docker-aufs-union490127216: exec: "auplink": executable file not found in $PATH 
19.07.17 18:48:14 (+0200) 
19.07.17 18:48:14 (+0200) + for i in '$containers'
19.07.17 18:48:14 (+0200) + docker-compose build static-server
19.07.17 18:48:15 (+0200) Building static-server
19.07.17 18:48:15 (+0200) WARN[0003] Error getting v2 registry: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io: no such host 
19.07.17 18:48:15 (+0200) ERRO[0003] Attempting next endpoint for pull after error: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io: no such host 
19.07.17 18:48:15 (+0200) Step 1 : FROM resin/armhf-alpine
19.07.17 18:48:15 (+0200) ERRO[0003] Not continuing with pull after error: Error while pulling image: Get https://index.docker.io/v1/repositories/resin/armhf-alpine/images: dial tcp: lookup index.docker.io: no such host