#Hey I m also hitting my head when trying
1 messages · Page 1 of 1 (latest)
I'm working really similar workflow at the moment. Maybe you can check :
- do you have
dockercli inrobertd/alpine-aws-cdk:2.99.0image - you start docker a service and expose it using port but you're trying to mount
WithUnixSocket("/var/run/docker.sock", client.Host().UnixSocket("/var/run/docker.sock")). - you can check service container because it has an
entrypoint(https://github.com/docker-library/docker/blob/master/dockerd-entrypoint.sh) you're sending dockerd again. This could also creating issue
Maybe you can try WithExec([]string{"-H", "tcp://0.0.0.0:2375", "--tlsverify=false"}, ContainerWithExecOpts{InsecureRootCapabilities: true}).
with service and mount it as
WithEnvVariable("DOCKER_HOST", "tcp://docker:2375").
of course you still need to keep service binding