title |
---|
Podman |
This should be mainly a Podman only error: Using Podman doesn't create an engine-id like Docker.
If you are using Docker, check if the engine-id
file exists with correct permissions in /var/lib/docker
and has the UUID inside.
It might be necessary to clean up your existing Dozzle deployment under Podman, stop the container and remove the associated data (container/volumes). After you create the engine-id, you can redeploy the Dozzle container and your logs should now show up.
Options for generating UUIDs:
- Install uuidgen
- Create the folders:
mkdir -p /var/lib/docker
- Using uuidgen generate a UUID:
uuidgen > /var/lib/docker/engine-id
- Verify with
cat /var/lib/docker/engine-id
If you wish to adjust the user, you have to set individual become/become_user parameters for these tasks.
- name: Create /var/lib/docker
ansible.builtin.file:
path: /var/lib/docker
state: directory
mode: "755"
- name: Create engine-id and derive UUID from hostname
ansible.builtin.lineinfile:
path: /var/lib/docker/engine-id
line: "{{ hostname | to_uuid }}"
create: true
mode: "0644"
insertafter: "EOF"