mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
Some checks failed
ci / build_images (map[arch:amd64 platform:linux version:]) (push) Has been cancelled
ci / build_images (map[arch:amd64 platform:windows version:1809]) (push) Has been cancelled
ci / build_images (map[arch:amd64 platform:windows version:ltsc2022]) (push) Has been cancelled
ci / build_images (map[arch:arm platform:linux version:]) (push) Has been cancelled
ci / build_images (map[arch:arm64 platform:linux version:]) (push) Has been cancelled
ci / build_images (map[arch:ppc64le platform:linux version:]) (push) Has been cancelled
/ triage (push) Has been cancelled
Lint / Run linters (push) Has been cancelled
Test / test-client (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:linux]) (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:windows version:1809]) (push) Has been cancelled
Test / test-server (map[arch:amd64 platform:windows version:ltsc2022]) (push) Has been cancelled
Test / test-server (map[arch:arm64 platform:linux]) (push) Has been cancelled
ci / build_manifests (push) Has been cancelled
22 lines
528 B
Bash
Executable file
22 lines
528 B
Bash
Executable file
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
PORTAINER_DATA=${PORTAINER_DATA:-/tmp/portainer}
|
|
PORTAINER_PROJECT=${PORTAINER_PROJECT:-$(pwd)}
|
|
PORTAINER_FLAGS=${PORTAINER_FLAGS:-}
|
|
|
|
sudo podman rm -f portainer
|
|
|
|
# rootful podman (sudo required)
|
|
sudo podman run -d \
|
|
-p 8000:8000 \
|
|
-p 9000:9000 \
|
|
-p 9443:9443 \
|
|
-v "$PORTAINER_PROJECT/dist:/app" \
|
|
-v "$PORTAINER_DATA:/data" \
|
|
-v /run/podman/podman.sock:/var/run/docker.sock \
|
|
-v /tmp:/tmp \
|
|
--privileged \
|
|
--name portainer \
|
|
portainer/base \
|
|
/app/portainer $PORTAINER_FLAGS
|