onepub
(Onepub)
February 4, 2024, 11:35pm
1
I’m using buildx to build a docker container.
My docker file has been working fine until I added a second drive to my zfs rpool (not mirrored).
Now when I try to run a ‘mv’ command in my docker file it fails:
#15 0.592 mv: cannot move '/tmp/webp/unzipped/libwebp-1.3.2-linux-x86-64/bin/cwebp' to a subdirectory of itself, '/usr/bin/cwebp'
#15 ERROR: process "/bin/sh -c mv /tmp/webp/unzipped/libwebp-1.3.2-linux-x86-64/bin/cwebp /usr/bin/cwebp" did not complete successfully: exit code: 1
------
> [10/21] RUN mv /tmp/webp/unzipped/libwebp-1.3.2-linux-x86-64/bin/cwebp /usr/bin/cwebp:
As you can see the target directory isn’t a subdirectory of the source.
Is there some way of fixing this - now that I’ve added the second drive to the rpool the only way to to back is to completely rebuild my system :D.
FYI: I have worked around the problem by changing to using ‘cp’ but I would still understand how to get ‘mv’ working again.
Should I report this as a bug?
zpool status
pool: bpool
state: ONLINE
scan: scrub repaired 0B in 00:00:00 with 0 errors on Sun Jan 14 00:24:01 2024
config:
NAME STATE READ WRITE CKSUM
bpool ONLINE 0 0 0
nvme0n1p3 ONLINE 0 0 0
errors: No known data errors
pool: rpool
state: ONLINE
status: Some supported and requested features are not enabled on the pool.
The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
the pool may no longer be accessible by software that does not support
the features. See zpool-features(7) for details.
scan: scrub repaired 0B in 00:06:55 with 0 errors on Sun Jan 14 00:30:56 2024
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
nvme0n1p4 ONLINE 0 0 0
nvme1n1p1 ONLINE 0 0 0
df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 3.2G 324M 2.9G 11% /run
rpool/ROOT/ubuntu_c520d1 512G 20G 492G 4% /
tmpfs 16G 244M 16G 2% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 16G 0 16G 0% /run/qemu
bpool/BOOT/ubuntu_c520d1 1.1G 434M 643M 41% /boot
/dev/nvme0n1p1 511M 19M 493M 4% /boot/efi
rpool/USERDATA/root_b4334o 493G 846M 492G 1% /root
rpool/ROOT/ubuntu_c520d1/var/log 493G 999M 492G 1% /var/log
rpool/ROOT/ubuntu_c520d1/usr/local 493G 581M 492G 1% /usr/local
rpool/ROOT/ubuntu_c520d1/var/lib 507G 15G 492G 3% /var/lib
rpool/ROOT/ubuntu_c520d1/var/games 492G 128K 492G 1% /var/games
rpool/ROOT/ubuntu_c520d1/srv 492G 128K 492G 1% /srv
rpool/USERDATA/xxxxx_b4334o 560G 68G 492G 13% /home/xxxxx
rpool/ROOT/ubuntu_c520d1/var/snap 492G 13M 492G 1% /var/snap
rpool/ROOT/ubuntu_c520d1/var/mail 492G 128K 492G 1% /var/mail
rpool/ROOT/ubuntu_c520d1/var/spool 492G 2.4M 492G 1% /var/spool
rpool/ROOT/ubuntu_c520d1/var/www 492G 128K 492G 1% /var/www
rpool/ROOT/ubuntu_c520d1/var/lib/NetworkManager 492G 256K 492G 1% /var/lib/NetworkManager
rpool/ROOT/ubuntu_c520d1/var/lib/AccountsService 492G 128K 492G 1% /var/lib/AccountsService
rpool/ROOT/ubuntu_c520d1/var/lib/apt 492G 99M 492G 1% /var/lib/apt
rpool/ROOT/ubuntu_c520d1/var/lib/dpkg 492G 76M 492G 1% /var/lib/dpkg
rpool/var/lib/docker 506G 14G 492G 3% /var/lib/docker
tmpfs 3.2G 176K 3.2G 1% /run/user/1000
meyay
(Metin Y.)
February 5, 2024, 7:04am
2
It indeed looks like a bug. You can raise an issue in the Moby Github repository:
onepub
(Onepub)
February 21, 2024, 12:13am
3
I’ve raised a bug report:
opened 12:07AM - 21 Feb 24 UTC
status/0-triage
kind/bug
### Description
I’m using buildx to build a docker container.
My docker file… has been working fine until I added a second drive to my zfs rpool (not mirrored).
Now when I try to run a ‘mv’ command in my docker file it fails:
#15 0.592 mv: cannot move '/tmp/webp/unzipped/libwebp-1.3.2-linux-x86-64/bin/cwebp' to a subdirectory of itself, '/usr/bin/cwebp'
#15 ERROR: process "/bin/sh -c mv /tmp/webp/unzipped/libwebp-1.3.2-linux-x86-64/bin/cwebp /usr/bin/cwebp" did not complete successfully: exit code: 1
------
> [10/21] RUN mv /tmp/webp/unzipped/libwebp-1.3.2-linux-x86-64/bin/cwebp /usr/bin/cwebp:
As you can see the target directory isn’t a subdirectory of the source.
Is there some way of fixing this - now that I’ve added the second drive to the rpool the only way to to back is to completely rebuild my system :D.
### Reproduce
create zfs volume with two drives in rpool (non-mirrored)
Try use the 'RUN mv' command to move a file within the container
My zpool
```
zpool status
pool: bpool
state: ONLINE
scan: scrub repaired 0B in 00:00:00 with 0 errors on Sun Jan 14 00:24:01 2024
config:
NAME STATE READ WRITE CKSUM
bpool ONLINE 0 0 0
nvme0n1p3 ONLINE 0 0 0
errors: No known data errors
pool: rpool
state: ONLINE
status: Some supported and requested features are not enabled on the pool.
The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
the pool may no longer be accessible by software that does not support
the features. See zpool-features(7) for details.
scan: scrub repaired 0B in 00:06:55 with 0 errors on Sun Jan 14 00:30:56 2024
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
nvme0n1p4 ONLINE 0 0 0
nvme1n1p1 ONLINE 0 0 0
```
File system
```
df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 3.2G 324M 2.9G 11% /run
rpool/ROOT/ubuntu_c520d1 512G 20G 492G 4% /
tmpfs 16G 244M 16G 2% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 16G 0 16G 0% /run/qemu
bpool/BOOT/ubuntu_c520d1 1.1G 434M 643M 41% /boot
/dev/nvme0n1p1 511M 19M 493M 4% /boot/efi
rpool/USERDATA/root_b4334o 493G 846M 492G 1% /root
rpool/ROOT/ubuntu_c520d1/var/log 493G 999M 492G 1% /var/log
rpool/ROOT/ubuntu_c520d1/usr/local 493G 581M 492G 1% /usr/local
rpool/ROOT/ubuntu_c520d1/var/lib 507G 15G 492G 3% /var/lib
rpool/ROOT/ubuntu_c520d1/var/games 492G 128K 492G 1% /var/games
rpool/ROOT/ubuntu_c520d1/srv 492G 128K 492G 1% /srv
rpool/USERDATA/xxxxx_b4334o 560G 68G 492G 13% /home/xxxxx
rpool/ROOT/ubuntu_c520d1/var/snap 492G 13M 492G 1% /var/snap
rpool/ROOT/ubuntu_c520d1/var/mail 492G 128K 492G 1% /var/mail
rpool/ROOT/ubuntu_c520d1/var/spool 492G 2.4M 492G 1% /var/spool
rpool/ROOT/ubuntu_c520d1/var/www 492G 128K 492G 1% /var/www
rpool/ROOT/ubuntu_c520d1/var/lib/NetworkManager 492G 256K 492G 1% /var/lib/NetworkManager
rpool/ROOT/ubuntu_c520d1/var/lib/AccountsService 492G 128K 492G 1% /var/lib/AccountsService
rpool/ROOT/ubuntu_c520d1/var/lib/apt 492G 99M 492G 1% /var/lib/apt
rpool/ROOT/ubuntu_c520d1/var/lib/dpkg 492G 76M 492G 1% /var/lib/dpkg
rpool/var/lib/docker 506G 14G 492G 3% /var/lib/docker
tmpfs 3.2G 176K 3.2G 1% /run/user/1000
```
### Expected behavior
The mv command should work as expected.
### docker version
```bash
docker version
Client:
Version: 24.0.5
API version: 1.43
Go version: go1.20.3
Git commit: 24.0.5-0ubuntu1~22.04.1
Built: Mon Aug 21 19:50:14 2023
OS/Arch: linux/amd64
Context: default
Server:
Engine:
Version: 24.0.5
API version: 1.43 (minimum version 1.12)
Go version: go1.20.3
Git commit: 24.0.5-0ubuntu1~22.04.1
Built: Mon Aug 21 19:50:14 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.2
GitCommit:
runc:
Version: 1.1.7-0ubuntu1~22.04.2
GitCommit:
docker-init:
Version: 0.19.0
GitCommit:
```
### docker info
```bash
docker info
Client:
Version: 24.0.5
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: 0.11.2
Path: /usr/libexec/docker/cli-plugins/docker-buildx
Server:
Containers: 7
Running: 3
Paused: 0
Stopped: 4
Images: 78
Server Version: 24.0.5
Storage Driver: overlay2
Backing Filesystem: zfs
Supports d_type: true
Using metacopy: false
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: systemd
Cgroup Version: 2
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 runc
Default Runtime: runc
Init Binary: docker-init
containerd version:
runc version:
init version:
Security Options:
apparmor
seccomp
Profile: builtin
cgroupns
Kernel Version: 6.2.0-39-generic
Operating System: Ubuntu 22.04.4 LTS
OSType: linux
Architecture: x86_64
CPUs: 16
Total Memory: 31.28GiB
Name: slayer4
ID: 97782504-1188-4e80-b500-ce4d4eb402b6
Docker Root Dir: /var/lib/docker
Debug Mode: false
Username: onepub
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
```
### Additional Info
_No response_