Docker LXC

Options to Install Portainer and/or Docker Compose V2

Docker is an open-source project for automating the deployment of applications as portable, self-sufficient containers.

🛈 If the LXC is created Privileged, the script will automatically set up USB passthrough.

To create a new Proxmox VE Docker LXC, run the command below in the Proxmox VE Shell.

bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/docker.sh)"

Default Settings: 2GB RAM - 4GB Storage - 2vCPU

As an alternative option, you can use Alpine Linux and the Docker package to create a Docker LXC container with faster creation time and minimal system resource usage.

To create a new Proxmox VE Alpine-Docker LXC, run the command below in the Proxmox VE Shell.

bash -c "$(wget -qO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/alpine-docker.sh)"

Default Settings: 1GB RAM - 2GB Storage - 1vCPU

:warning: Run Compose V2 by replacing the hyphen (-) with a space, using docker compose, instead of docker-compose.

Portainer Interface: (https) IP:9443

2 Likes

How is it possible to create a privileged container using this script? This script automatically creates an unprivileged container and offers no choice.

Did you use advanced installation?

Thank you for the advice. It works with the advanced installation.

1 Like

Greetings!
Thank you so much for your hard work!
Why does this container (Portainer) need another port 8000? Usually the Portainer uses http:9000 Well https:9443 .
How can I disable or reinstall without port 8000?
8000 usually uses a CompreFace

The Portainer Port 8000 is used for external access to Portainer. E.g. In cases where you want a local Portainer to communicate with a Cloud-based Portainer. The other port numbers often used in Portainer configuration are 1) Port 9443 for secure access using https via the browser and Port 9000 for legacy applications.

:heavy_check_mark: Installed Dependencies

[ERROR] in line 26: exit code 0: while executing command DOCKER_LATEST_VERSION=$(get_latest_release “moby/moby”)
root@pve:~#

Default and Verbose

Nothing wrong with the script. You have some other problems on your Proxmox or your IP is blocked by api.github.com