OCI Images: How to access logs like "docker logs" command in LXC OCI containers.

vovo500

New Member
Dec 22, 2025
8
1
3
I am very happy using OCI images.
However, I don't know how to configure the LXC to see the output which comes with whe docker logs command.

BTW: Im am working on a web based tool to create LXC containers from docker-compose.yml (or from scratch) OCI LXC deployer
 
I am very happy using OCI images.
However, I don't know how to configure the LXC to see the output which comes with whe docker logs command.

BTW: Im am working on a web based tool to create LXC containers from docker-compose.yml (or from scratch) OCI LXC deployer
Hi,

Proxmox uses pct for running both LXC and OCI containers on a proxmox hosts. LXC containers (what pct manages) don't capture stdout/stderr of their processes the way Docker does. Docker's logging driver intercepts PID 1's output streams at the runtime level — LXC doesn't do this.

You can ssh (or open shell from proxmox gui) to the proxmox hosts and execute commands on the container:

This one enters interactive shell inside the OCI or LXC container (change the number to your container id): pct enter 108
And inside the container shell you can cat or the tail the application logs.