Skip to main content

Podman

install

docs

  • is deamonless
  • uses the same cli specificatio than docker
  • docker run ... -> podman run ...
  • docker-compose ... -> podman-compose ... must be installed before

autostart at boot

linuxhandbook

podman is deamonless so it wont autostart, create a sytem entry with:

podman generate systemd --new --name CONTAINER_NAME -f /home/USER/CONTAINER_NAME.service
mv /home/USER/CONTAINER_NAME.service /home/USER/.config/systemd/user/CONTAINER_NAME.service

# for root
sudo systemctl daemon-reload
sudo systemctl enable SERVICE_NAME.service
sudo systemctl status SERVICE_NAME.service

# or other user
systemctl --user daemon-reload
systemctl --user enable SERVICE_NAME.service
systemctl --user status SERVICE_NAME.service