How to Troubleshoot Intermittent 502 Errors Through a Cloudflare Tunnel
When Cloudflare Tunnel returns an intermittent 502 for your website, the cloudflared connector may have failed to reach your local service on…
Proxmox VE 9.1 lets you use many OCI images as templates for Proxmox containers, which gives you a way to run packaged Docker images on a Proxmox host. OCI, the Open Container Initiative, defines a standard format for packaging applications and their files. Proxmox converts an OCI image into an LXC container and manages it with the same tools it uses for regular containers.
Proxmox does not run Docker Engine inside that container. Instead, the container shares the host’s Linux kernel, and the Docker image usually supplies an application and its startup settings rather than a complete operating system. Proxmox treats direct use of application images as a technology preview, so you should check the image’s requirements and test it on the Proxmox release you plan to run. If you need container orchestration, live migration, or stronger isolation, run Docker inside a Proxmox QEMU virtual machine.
Use an OCI image when you want to run a prepackaged application inside a container that Proxmox manages directly. Proxmox separates these application images from conventional system-container templates, which give you a fuller Linux environment where you install and manage services yourself. According to the Proxmox VE 9.1 announcement, the resulting container depends on what is inside the image and can be either a full system container or a lean application container.
Proxmox’s Container Toolkit documentation labels application containers as a technology preview. Proxmox does not guarantee compatibility with every image or every Docker-specific setting. Because Proxmox containers share the host’s Linux kernel, they only run Linux distributions and cannot run Windows or FreeBSD.
Run a QEMU virtual machine instead when your workload needs its own guest kernel, stronger isolation, orchestration, or live migration. Proxmox recommends a VM for those workloads, and the Proxmox FAQ advises against installing Docker Engine directly on the Proxmox host.
Start by selecting Proxmox storage that supports container templates. In the web interface, open that storage’s container-template view and choose Pull from OCI registry. You can also upload an OCI image archive directly. Once the image appears in your stored templates, select it in the container-creation wizard.
Proxmox documents pct create for creating containers from the command line, but its current documentation does not provide a complete OCI-specific command with all required arguments. If you are creating your first OCI-based container, the web wizard is the clearest documented path. A Proxmox development patch notes that the web interface uses skopeo to pull images from a registry. Check the package requirements for your installed release, since that development note does not establish a universal installation requirement.
In the wizard, assign a unique container ID and hostname, pick a storage location, and set your network, CPU, and memory limits. Create an unprivileged container unless you have a specific reason to run a privileged one. In an unprivileged container, root inside the container maps to an unprivileged user on the Proxmox host. That mapping limits the damage if someone gains root access inside the container.
Before you start the container, read the image publisher’s documentation. Find out which executable starts the application, which user runs it, and which environment variables it expects. You should also note where it writes persistent data and which network ports it listens on.
Docker images define how an application starts with ENTRYPOINT, which names the executable, and CMD, which supplies default arguments or a default command. Images can also set environment variables and a runtime user. Proxmox provides related settings such as entrypoint and env, but Proxmox does not guarantee that it preserves every Docker metadata feature when it converts an image. Test the image’s documented startup behavior on your target Proxmox release before you rely on overrides.
Keep application data separate from the image’s root filesystem. In the PVE 9.1 technology preview, Proxmox staff noted that Proxmox flattens the OCI layers into a single root filesystem when it creates the container. Because of that, you cannot swap in a newer image on an existing container. Instead, Proxmox staff suggest creating a new container from the updated image and moving your separate data mount points over to it. Before you replace a container, verify where the application stores persistent data and make sure those paths remain available after the move.
A Docker image’s EXPOSE instruction only records a port in the image’s metadata. It does not configure Proxmox networking or publish the port on the host. Configure the container’s network in Proxmox, then test whether the client or network that needs the service can reach it.
You can start the container from the web interface or by running pct start <CTID>, replacing <CTID> with the container’s ID. To inspect its settings, run pct config <CTID>, and to open a shell for troubleshooting, run pct enter <CTID>. Keep in mind that these are general Proxmox container commands; not every application image includes a full interactive Linux environment.
Verify that the service stays up, reads and writes its persistent data, and responds over the expected network. Record the image tag or digest along with your container settings so you can rebuild the deployment later. If the container fails to start, compare the image’s documented startup command and environment variables against your Proxmox container settings before you touch any host settings.
When you convert an OCI image into a Proxmox container, you do not need Docker Engine inside it. Installing Docker Engine inside a standard LXC container is a different setup. Proxmox explains that enabling nesting allows a container to run nested containers and exposes the host’s procfs and sysfs contents to the guest. The Proxmox container configuration reference also notes that running Docker inside an unprivileged container requires the separate keyctl feature.
Both settings give the container broader access to host resources. Do not turn them on because an OCI image fails to start. First check whether the workload actually requires Docker Engine. If you need Docker, multi-service Compose deployments, or stronger isolation, create a QEMU VM and run the container runtime there.
Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.
Take a look at vroni.com