Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-outside-of-docker fails to install #842

Closed
jDmacD opened this issue Feb 12, 2024 · 6 comments
Closed

docker-outside-of-docker fails to install #842

jDmacD opened this issue Feb 12, 2024 · 6 comments
Assignees

Comments

@jDmacD
Copy link

jDmacD commented Feb 12, 2024

3.830 Err:1 https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod bookworm/main amd64 moby-buildx amd64 0.12.1-debian12u1
3.830   File has unexpected size (34144692 != 34094360). Mirror sync in progress? [IP: 13.79.173.94 443]
3.830   Hashes of expected file:
3.830    - SHA256:386e64bb33449d6abd76930b06d37f373fc073e095545b1f7761eea2d055fcd2
3.830    - Filesize:34094360 [weak]

This was working fine 3 days ago. Due to the nature of the error it might be a "wait a few hours" type of problem

rm -rf /tmp/dev-container-features/docker-outside-of-docker_1:
0.094 ===========================================================================
0.094 Feature       : Docker (docker-outside-of-docker)
0.094 Description   : Re-use the host docker socket, adding the Docker CLI to a container. Feature invokes a script to enable using a forwarded Docker socket within a container to run Docker commands.
0.094 Id            : ghcr.io/devcontainers/features/docker-outside-of-docker
0.094 Version       : 1.3.2
0.094 Documentation : https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker
0.094 Options       :
0.094     VERSION="latest"
0.094     MOBY="true"
0.094     DOCKERDASHCOMPOSEVERSION="v2"
0.094     INSTALLDOCKERBUILDX="true"
0.094 ===========================================================================
0.106 Distro codename  'bookworm'  matched filter  'bookworm buster bullseye bionic focal jammy'
0.387 Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
0.392 Get:2 https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod bookworm InRelease [3617 B]
0.431 Get:3 http://deb.debian.org/debian bookworm-updates InRelease [52.1 kB]
0.447 Get:4 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
0.455 Get:5 https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod bookworm/main all Packages [342 B]
0.488 Get:6 https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod bookworm/main amd64 Packages [25.9 kB]
0.512 Get:7 http://deb.debian.org/debian bookworm/main amd64 Packages [8786 kB]
1.221 Get:8 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [12.7 kB]
1.222 Get:9 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [137 kB]
2.233 Fetched 9217 kB in 2s (4619 kB/s)
2.233 Reading package lists...
2.790 Reading package lists...
3.341 Building dependency tree...
3.496 Reading state information...
3.711 Recommended packages:
3.711   pigz
3.733 The following NEW packages will be installed:
3.733   moby-buildx moby-cli
3.830 0 upgraded, 2 newly installed, 0 to remove and 9 not upgraded.
3.830 Need to get 49.7 MB of archives.
3.830 After this operation, 113 MB of additional disk space will be used.
3.830 Get:1 https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod bookworm/main amd64 moby-buildx amd64 0.12.1-debian12u1 [34.1 MB]
3.830 Err:1 https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod bookworm/main amd64 moby-buildx amd64 0.12.1-debian12u1
3.830   File has unexpected size (34144692 != 34094360). Mirror sync in progress? [IP: 13.79.173.94 443]
3.830   Hashes of expected file:
3.830    - SHA256:386e64bb33449d6abd76930b06d37f373fc073e095545b1f7761eea2d055fcd2
3.830    - Filesize:34094360 [weak]
3.908 Get:2 https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod bookworm/main amd64 moby-cli amd64 24.0.9-debian12u1 [15.6 MB]
4.724 Fetched 15.6 MB in 1s (16.1 MB/s)
4.724 E: Failed to fetch https://packages.microsoft.com/repos/microsoft-debian-bookworm-prod/pool/main/m/moby-buildx/moby-buildx_0.12.1-debian12u1_amd64.deb  File has unexpected size (34144692 != 34094360). Mirror sync in progress? [IP: 13.79.173.94 443]
4.724    Hashes of expected file:
4.724     - SHA256:386e64bb33449d6abd76930b06d37f373fc073e095545b1f7761eea2d055fcd2
4.724     - Filesize:34094360 [weak]
4.724 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
4.728 ERROR: Feature "Docker (docker-outside-of-docker)" (ghcr.io/devcontainers/features/docker-outside-of-docker) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker for help troubleshooting this error.
------
Dockerfile.extended:33
--------------------
  32 |     
  33 | >>> RUN --mount=type=bind,from=dev_containers_feature_content_source,source=docker-outside-of-docker_1,target=/tmp/build-features-src/docker-outside-of-docker_1 \
  34 | >>>     cp -ar /tmp/build-features-src/docker-outside-of-docker_1 /tmp/dev-container-features \
  35 | >>>  && chmod -R 0755 /tmp/dev-container-features/docker-outside-of-docker_1 \
  36 | >>>  && cd /tmp/dev-container-features/docker-outside-of-docker_1 \
  37 | >>>  && chmod +x ./devcontainer-features-install.sh \
  38 | >>>  && ./devcontainer-features-install.sh \
  39 | >>>  && rm -rf /tmp/dev-container-features/docker-outside-of-docker_1
  40 |     
--------------------
@bigtallcampbell
Copy link
Contributor

bigtallcampbell commented Feb 12, 2024

+1 - seeing this too. Starting happening on Friday afternoon (9 Feb 2024 ~1230 CST).

I'm seeing across all bullseye and bookworm-based devcontainers. Jammy-based devcontainers are working.

Related note: dotnet6 and dotnet7 devcontainers are bullseye based. dotnet8 is bookworm based.

@cabarney
Copy link

+1 - Started Friday.

@bigtallcampbell
Copy link
Contributor

bigtallcampbell commented Feb 12, 2024

More context on which base containers are working and which are broken:

Base Container Status
mcr.microsoft.com/devcontainers/dotnet:6.0 ✅ Working
mcr.microsoft.com/devcontainers/dotnet:0-6.0 ❌ Broken
mcr.microsoft.com/devcontainers/dotnet:1-6.0 ❌ Broken
mcr.microsoft.com/devcontainers/dotnet:7.0 ✅ Working
mcr.microsoft.com/devcontainers/dotnet:0-7.0 ❌ Broken
mcr.microsoft.com/devcontainers/dotnet:1-7.0 ❌ Broken

Devcontainer.json used to generate results:

{
	"name": "C# (.NET)",
	"image": "mcr.microsoft.com/devcontainers/dotnet:1-6.0",
	"features": {
		"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
	}
}

@samruddhikhandale
Copy link
Member

samruddhikhandale commented Feb 12, 2024

This looks similar to #837 and needs a similar fix. See #838

#837 (comment) mentions the root cause of why this started happening.

I'll shortly open a PR to unblock this scenario, thanks for reporting!

@samruddhikhandale
Copy link
Member

samruddhikhandale commented Feb 12, 2024

In the meanwhile, this should help as well. See #837 (comment)

Hey y'all, 

just thought I'd mention that I was having the same issue with the docker-outside-of-docker feature but it can be solved with the option:

{
    "installDockerBuildx": false        // Defaults to true
}

so long as you don't require buildx

@samruddhikhandale
Copy link
Member

Closing as this should be fixed with #843

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants