Skip to content

Configuring docker when dockers are in individual LXCs on Proxmox #1541

Closed Locked Answered by mgrimace
mgrimace asked this question in Support
Discussion options

You must be logged in to vote

I'll answer this myself:

I added dockerproxy to each LXC running docker, including homepage using the following docker compose:

version: "3.3"
services:
  dockerproxy:
    image: ghcr.io/tecnativa/docker-socket-proxy:latest
    container_name: dockerproxy
    environment:
        - CONTAINERS=1 # Allow access to viewing containers
        - POST=0 # Disallow any POST operations (effectively read-only)
    ports:
        - 2375:2375
    volumes:
        - /var/run/docker.sock:/var/run/docker.sock:ro # Mounted as read-only
    restart: unless-stopped

Then, back in the Homepage config folder, I add each container's detail to docker.yaml and give them a name, for example:

docker-arr:
  host:…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mgrimace
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant