Skip to content

portainer

Bash
docker-compose up -d

Then you can visit the Portainer Web UI at https://localhost:9443/. Login with username admin and password changeme.

To generate the hash value for the --admin-password CLI argument I used the following command:

Bash
docker run --rm httpd:2.4-alpine htpasswd -nbB admin changeme

The debian01 container is just a sample Debian container.

Podman

To make this work with Podman you'll need to:

  • Enable and start the Podman socket with systemctl enable --now podman.socket
  • In the docker-compose.yml file, prepend docker.io/ to the image names (e.g. docker.io/portainer/portainer-ce)
  • In the docker-compose.yml file, change the docker.sock volume mount line to point to the Podman socket on the host. You can use the systemctl status podman.socket | grep 'Listen:' command to get the right socket path

If you want to run the Podman socket as non-root user, add the --user switch to the systemctl commands above.

Then:

Bash
podman-compose up -d