#Hey I m also hitting my head when trying

1 messages · Page 1 of 1 (latest)

finite thorn
#

I'm working really similar workflow at the moment. Maybe you can check :

  • do you have docker cli in robertd/alpine-aws-cdk:2.99.0 image
  • 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
GitHub

Docker Official Image packaging for Docker. Contribute to docker-library/docker development by creating an account on GitHub.

#

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