Open sergey-morenets opened 1 year ago
Hi,
I think this is not only related to Windows. I have a docker-compose project on Linux system which fails to build as well. In my case it seems that it is because I had a buildx configured earlier (i.e. for docker version <23.0.0) and could use it with docker buildx build
command. With the latest docker release (23.0.0) buildx became default builder and this apparently affects compose as well:
$ docker compose build
[+] Building 0.0s (0/0)
no valid drivers found: error during connect: Get "http://docker.example.com/v1.24/info": command [ssh -- 192.168.40.8 docker system dial-stdio] has exited with exit status 255, please make sure the URL is valid, and Docker 18.09 or later is installed on the remote host: stderr=ssh: connect to host 192.168.40.8 port 22: Connection timed out
The 192.168.40.8 is one of my multi-arch docker VMs for multi-arch builds using buildx and it was powered off at the time.
With the VM up and running container image gets built but it is done on the remote machine and transferred back to the system where docker compose build
has been called.
I can revert the old behaviour by simply setting DOCKER_BUILDKIT=0
though, but maybe there is some other, cleaner way.
Please advise if this should be reported as a separate case (or it if should be considered a 'bug' at all).
Edit: It was enough to change the default context for the buildx - something that I did not need to do in the past:
docker buildx use default
The same issue was faced after a clean Ubuntu setup on two different devices at the same time.
same issue using docker-compose with podman on windows/WSL2 when DOCKER_BUILDKIT=1 (buildx)
Hi
Original issue is here: https://github.com/docker/compose/issues/10229
We have very simple Docker Compose configuration that was built successfully until last upgrade to Docker 4.16.3. Docker compose built stuck forever so we have to restart computer and sometime remove empty meta.json file so that Docker Compose start working properly. The last lines from docker-compose build command output are:
Here's logs from \docker-desktop-data\data\docker\containers\
Steps To Reproduce
Here's docker-compose.yml:
And Dockerfile:
We run command: "docker-compose build" or "docker compose build". Interesting is if we remove "USER root" line then build is run with success. Also if we just execute "docker build ." command then built is also executed with success.
Compose Version
2.15.1
Docker Environment