When I run a container, it seems to have no effect. I still have access to my shell history, I can still run any program, etc. When I run an Ubuntu container, and then run neofetch
, I get the output from EndeavourOS. I already tried sudo pacman -Rns docker; sudo pacman -S docker
, but the same thing happens again. I also tried booting a different kernel.
$ sudo docker run -it ubuntu
[root@0649c24117eb /]# neofetch
./o. root@0649c24117eb
./sssso- -----------------
`:osssssss+- OS: EndeavourOS Linux x86_64
`:+sssssssssso/. Host: MS-7C91 2.0
`-/ossssssssssssso/. Kernel: 6.4.3-273-tkg-pds-llvm
`-/+sssssssssssssssso+:` Uptime: 2 hours, 41 mins
`-:/+sssssssssssssssssso+/. Packages: 2514 (pacman), 46 (nix-user), 46 (nix-default),
`.://osssssssssssssssssssso++- Shell: bash 5.1.16
.://+ssssssssssssssssssssssso++: Resolution: 1920x1080
.:///ossssssssssssssssssssssssso++: CPU: AMD Ryzen 5 5600X (12) @ 3.700GHz
`:////ssssssssssssssssssssssssssso+++. GPU: AMD ATI Radeon RX 5600 OEM/5600 XT / 5700/5700 XT
`-////+ssssssssssssssssssssssssssso++++- Memory: 25011MiB / 32018MiB
`..-+oosssssssssssssssssssssssso+++++/`
./++++++++++++++++++++++++++++++/:.
`:::::::::::::::::::::::::------``
[root@0649c24117eb /]#
Journalctl at the time when I start it:
Jul 17 00:39:57 user-pc kernel: audit: type=1110 audit(1689547197.830:963): pid=27976 uid=1000 auid=1000 ses=4 subj=unconfined msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_env,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/4 res=success'
Jul 17 00:39:57 user-pc kernel: audit: audit_lost=2281 audit_rate_limit=0 audit_backlog_limit=64
Jul 17 00:39:57 user-pc kernel: audit: kauditd hold queue overflow
Jul 17 00:39:57 user-pc sudo[27976]: pam_unix(sudo:session): session opened for user root(uid=0) by user(uid=1000)
Jul 17 00:39:57 user-pc kernel: audit: type=1105 audit(1689547197.830:964): pid=27976 uid=1000 auid=1000 ses=4 subj=unconfined msg='op=PAM:session_open grantors=pam_systemd_home,pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/4 res=success'
Jul 17 00:39:57 user-pc kernel: audit: audit_lost=2282 audit_rate_limit=0 audit_backlog_limit=64
Jul 17 00:39:57 user-pc kernel: audit: kauditd hold queue overflow
Jul 17 00:39:58 user-pc NetworkManager[936]: <info> [1689547198.9512] manager: (veth18649e3): new Veth device (/org/freedesktop/NetworkManager/Devices/36)
Jul 17 00:39:58 user-pc kernel: docker0: port 1(vethb03dbd5) entered blocking state
Jul 17 00:39:58 user-pc kernel: docker0: port 1(vethb03dbd5) entered disabled state
Jul 17 00:39:58 user-pc kernel: vethb03dbd5: entered allmulticast mode
Jul 17 00:39:58 user-pc kernel: vethb03dbd5: entered promiscuous mode
Jul 17 00:39:58 user-pc kernel: audit: type=1700 audit(1689547198.950:965): dev=vethb03dbd5 prom=256 old_prom=0 auid=4294967295 uid=0 gid=0 ses=4294967295
Jul 17 00:39:58 user-pc kernel: docker0: port 1(vethb03dbd5) entered blocking state
Jul 17 00:39:58 user-pc kernel: docker0: port 1(vethb03dbd5) entered forwarding state
Jul 17 00:39:58 user-pc kernel: docker0: port 1(vethb03dbd5) entered disabled state
Jul 17 00:39:58 user-pc NetworkManager[936]: <info> [1689547198.9518] manager: (vethb03dbd5): new Veth device (/org/freedesktop/NetworkManager/Devices/37)
Jul 17 00:39:59 user-pc containerd[967]: time="2023-07-17T00:39:59.011481118+02:00" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1
Jul 17 00:39:59 user-pc containerd[967]: time="2023-07-17T00:39:59.011514888+02:00" level=info msg="loading plugin \"io.containerd.ttrpc.v1.pause\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
Jul 17 00:39:59 user-pc containerd[967]: time="2023-07-17T00:39:59.011524428+02:00" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1
Jul 17 00:39:59 user-pc containerd[967]: time="2023-07-17T00:39:59.011531128+02:00" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
Jul 17 00:39:59 user-pc systemd[1]: Started libcontainer container <some-ID>.
Jul 17 00:39:59 user-pc kernel: eth0: renamed from veth18649e3
Jul 17 00:39:59 user-pc kernel: IPv6: ADDRCONF(NETDEV_CHANGE): vethb03dbd5: link becomes ready
Jul 17 00:39:59 user-pc kernel: docker0: port 1(vethb03dbd5) entered blocking state
Jul 17 00:39:59 user-pc kernel: docker0: port 1(vethb03dbd5) entered forwarding state
Jul 17 00:39:59 user-pc NetworkManager[936]: <info> [1689547199.0942] device (vethb03dbd5): carrier: link connected
Jul 17 00:39:59 user-pc NetworkManager[936]: <info> [1689547199.0945] device (docker0): carrier: link connected
Jul 17 00:40:00 user-pc avahi-daemon[928]: Joining mDNS multicast group on interface vethb03dbd5.IPv6 with address <some-IP>.
Jul 17 00:40:00 user-pc avahi-daemon[928]: New relevant interface vethb03dbd5.IPv6 for mDNS.
Jul 17 00:40:00 user-pc avahi-daemon[928]: Registering new address record for <some-IP> on vethb03dbd5.*.
It changes the shell to bash, it changes the hostname, and it changes the user to root. I even have access to the home directory of the root user Edit: on the host system, but I don’t have access to the home directory of any other user, including my own home directory.
I’m very sure that this is not at all what is supposed to happen, and something is seriously fucked up.
It used to work normally a couple weeks ago.
This could be related to a btrfs restore operation that I did a couple weeks ago (I used this tutorial: https://wiki.archlinux.de/title/Arch_auf_BtrFS).
I also deleted containers before, using docker system prune
and a couple other commands that I don’t remember. I did that, because I ran out of space on my root partition while doing an update. This lead to the system failing to boot, which was the reason for the btrfs restore operation.
What is also weird, is that I can’t restart an old container, and it fails with a permission error:
sudo docker container restart peaceful_fermi
Error response from daemon: Cannot restart container peaceful_fermi: mkdir /var/lib/docker/btrfs/subvolumes/<some_ID>/var: operation not permitted
This is very weird, because the permissions of the parent folder seem to be fine:
ls -lisah
insgesamt 0
2 0 drwxr-xr-x 1 root root 0 17. Jul 00:49 ./
12364829 0 drwx--x--- 1 root root 24K 17. Jul 00:39 ../
The following command was some minutes ago (before successfully running a docker container), now the command doesn’t even complete, and it just hangs. It also hangs after doing a reboot:
$ sudo du -sh /var/lib/docker/
73M /var/lib/docker/
Other things that I noticed, and that might or might not be related:
- My system crashed twice during the last week
- Yesterday I had the problem that I couldn’t put my system into sleep mode.
Is there any way to recover from this? I’m using the system for three years now, and I really want to save it. Reinstalling would only be the last resort for me.
I still have a couple btrfs snapshots, but at the current state, I’m afraid to touch anything without consulting someone with more knowledge.