`bootc` install doesn't work with `skopeo` `docker-daemon://` source-imgrefs
- Dominant language
- Rust
- Stars
- 2.3k
- Forks
- 230
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 38
Description
Not sure exactly why, all of this is running within a container with bootc and all directories necessary are mapped to the container because running `skopeo` manually works fine.
This works fine
```bash
skopeo copy docker-daemon:bootc:latest oci-archive:/output/bootc.tar:bootc:latest
bootc install to-disk --disable-selinux --composefs-backend --allow-missing-verity --bootloader systemd \
--via-loopback /output/bootable.img --filesystem ext4 --wipe \
--source-imgref oci-archive:/output/bootc.tar:bootc:latest \
--karg console=tty0 --karg console=ttyS0,115200 --karg selinux=0
```
This fails
```bash
bootc install to-disk --disable-selinux --composefs-backend --allow-missing-verity --bootloader systemd \
--via-loopback /output/bootable.img --filesystem ext4 --wipe \
--source-imgref docker-daemon:bootc:latest \
--karg console=tty0 --karg console=ttyS0,115200 --karg selinux=0
```
with
```
error: Installing to disk: Getting container info: failed to invoke method GetBlob: Unknown blob sha256:529a7c28bf7fe83341ce9296a990df37a497e58a900cbedccdd814b6a52d6a45
```
So I'm assuming it is a `bootc` issue. Docker registry works (`docker://ghcr.io/jmarrero/ubuntu-bootc:latest`) but not `docker-daemon`.
The following are bind mounted
```
-v /var/lib/docker:/var/lib/docker \
-v /var/lib/containerd:/var/lib/containerd \
-v /var/run/docker.sock:/var/run/docker.sock \
```
Contributor guide
Research direction
Start at the `bootc install to-disk` entry point and reproduce the difference between the working `oci-archive:` source-imgref and the failing `docker-daemon:` source-imgref inside the container. Check the behavior with the listed Docker and containerd mounts, and use the reported `GetBlob` unknown-blob error to verify that the docker-daemon source can be installed successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- devops, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100