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

Sysbox container with Ubuntu 21.10 + Docker (focal) fails to run properly #416

Closed
ctalledo opened this issue Oct 23, 2021 · 4 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@ctalledo
Copy link
Member

ctalledo commented Oct 23, 2021

Running a container with Ubuntu 21.10 + systemd + docker (focal), launched with Docker 20.10.9 + Sysbox v0.4.1 fails:

$ docker run --runtime=sysbox-runc -it --rm --name test-1 --hostname test-1 ghcr.io/nestybox/ubuntu-impish-systemd-docker:latest
...
[  OK  ] Started OpenBSD Secure Shell server.
[FAILED] Failed to start containerd container runtime.
See 'systemctl status containerd.service' for details.
[DEPEND] Dependency failed for Docker Application Container Engine.
[  OK  ] Started User Login Management.
...

Running Docker within this Sysbox container causes it to crash.

Needs investigation, but it's very likely related to the problem described here (not related to Sysbox per-se):

https://medium.com/nttlabs/ubuntu-21-10-and-fedora-35-do-not-work-on-docker-20-10-9-1cd439d9921

@ctalledo
Copy link
Member Author

ctalledo commented Oct 25, 2021

FYI: I was able to run a container image with Ubuntu Impish + systemd without problem, using Docker 20.10.9 + Sysbox top-of-tree (see below). This suggests the problem is specific to running Docker inside the Ubuntu Impish container.

root@sysbox-test:~/nestybox/sysbox# docker --version
Docker version 20.10.9, build c2ea9bc                         

root@sysbox-test:~/nestybox/sysbox# docker run --runtime=sysbox-runc -it --rm nestybox/ubuntu-impish-systemd

Welcome to Ubuntu 21.10! 
                                                                               
[  OK  ] Created slice system-getty.slice.                 
[  OK  ] Created slice system-modprobe.slice.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
...
[  OK  ] Started User Login Management.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Finished Update UTMP about System Runlevel Changes.

Ubuntu 21.10 6f91f7a35cd8 console

6f91f7a35cd8 login: admin
Password: 
Welcome to Ubuntu 21.10 (GNU/Linux 5.4.0-89-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

admin@6f91f7a35cd8:~$

@ctalledo
Copy link
Member Author

I was not able however to create an image with Ubuntu Impish + systemd + Docker following the usual Docker installation steps.

Apparently Docker has not yet added support for it; see here.

@rodnymolina
Copy link
Member

Right, i had to rely on focal's repo to be able to generate my impish-systemd-docker image.

@ctalledo ctalledo changed the title Sysbox container with Ubuntu 21.10 fails to run properly Sysbox container with Ubuntu 21.10 + Docker (focal) fails to run properly Oct 25, 2021
@ctalledo
Copy link
Member Author

ctalledo commented Mar 6, 2022

This is no longer reproducing (must have gotten fix in a recent change). Closing.

@ctalledo ctalledo closed this as completed Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants