nerdctl
nerdctl copied to clipboard
[Compose] restart=always does not work properly
Description
Hi, I am experiencing an issue where I defined the restart=always param in the docker-compose.yml, but the container does not spin up at boot.
Steps to reproduce the issue
- Prepare a docker-compose.yml for the container
version: "3.4"
services:
uptime-kuma:
image: louislam/uptime-kuma
container_name: uptime-kuma
restart: always
networks:
- proxy
volumes:
- /etc/uptime-kuma:/app/data
ports:
- 3001:3001
networks:
proxy:
name: proxy
- Run
nerdctl compose up -dto spin up the container
Describe the results you received and expected
The container is able to spin up at its first launch with the nerdctl compose up -d command. However, when the machine is rebooted, the container stops and not able to spin up again.
I assume that Nerdctl inherits the generic feature of starting the container at boot if the restart=always param persists in the docker-compose.yml
What version of nerdctl are you using?
0.17.0-beta.0
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
No response
Host information
No response
I experienced the similar issue
Is this issue about rootless or rootful?
For rootless you might need sudo loginctl enable-linger $(whoami) to run the containerd daemon (which restarts the contaienrs) on the host start-up: https://rootlesscontaine.rs/getting-started/common/login/
Is this issue about rootless or rootful?
For rootless you might need
sudo loginctl enable-linger $(whoami)to run the containerd daemon (which restarts the contaienrs) on the host start-up: https://rootlesscontaine.rs/getting-started/common/login/
I am running it in rootful mode
cc @junnplus