Closed whatever4711 closed 2 years ago
Hi @whatever4711 , great job! BTW can u help to delete the commented lines? so that I can merge it directly, thanks!
Hi @wrfly,
I removed the uncommented lines. Additionally, I checked if !strings.HasPrefix(host, "tcp://")
such that tcp://
is only added if it is needed.
Best regards
great, thanks!
Modified the go docker client in
container/docker/docker.go
to callclient.NewClientWithOpts(client.FromEnv)
, which enables the go client to connect to docker with the environment variables of the system.With this modification a TLS connection to the docker daemon is possible and there is no need to mount
docker.sock
anymore.For example, you may now run the following compose file, where a web-tty is attached to a docker-in-docker container.