Skip to content

Problems running nanocl on Ubuntu wth podman #1009

@izderadicka

Description

@izderadicka

Describe the bug
When playing with nanocl on Ubuntu 24.04 I've encountered couple of issues:

  1. It's related to existing Ubuntu bug:
    https://bugs.launchpad.net/ubuntu/+source/libpod/+bug/2040483 /
    This prevents podman and thus nanocl from stopping containers.
    Disabling apparmor heled.

  2. ndns exists with this error:

dnsmasq: failed to create listening socket for 10.89.0.1: Address in use

It's because it is used by podman's own dns service:

$ sudo lsof -nP -iUDP
COMMAND    PID            USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
aardvark- 9305            root    9u  IPv4  84026      0t0  UDP 10.89.0.1:53

As described here https://www.redhat.com/sysadmin/podman-new-network-stack

  1. After reboot of host majority of containers were gone - nanocld, ....
    podman does not have daemon by default - so restart of containers should be managed by systemd - not exactly sure why some containers restarted and some not . Did not look into details

While first issue is purely Canonical problem, second and third one I think will be more generic - I assume this will affect nanocl on other platforms too.

To Reproduce
Clean install of Ubuntu 24.04 and sudo apt install podman
Install nanocl as per it's documentation (must do sudo nanocl install because of right on podman socket in /var/run/podman/podman.sock")

failing ndns cn be seen via sudo podman ps -a

reboot system, and see what containers are still running

Expected behavior
podman should works same as docker

Desktop (please complete the following information):

  • OS: Linux
  • Distribution: Ubuntu
  • Version 24.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions