How to debug a failing container?

You shouldn’t have an underscore in your container name, see systemd/systemd#11765.

For the future:
To see the entire logs of the container service you can run journalctl -u container@foo.service.
And to see logs of services inside the container you can run sudo journalctl -M foo -u bar
Where foo is the container name and bar is the service name.

1 Like