Making this work requires a bit of extra effort to get it to a nice point.
Essentially we are aiming for a container that:
- Can be worked properly using
machinectl
- Can be logged into without having to type passwords (obviously don't do this if you expose it publically)
This guide assumes you run your networking with systemd-networkd
- if you don't, you will need to sort out container networking yourself.
Check you aren't using network-manager
with