Skip to content

Using docker-socket-proxy method doesn't get all ports and doesn't pull the names of containers #64

@ee-boi

Description

@ee-boi

First of all - this is a great utility, really appreciate it!

I am trying to setup using the docker-socket-proxy method. When I do this it doesn't find all the ports on my server, and it just lists my docker containers as "docker-proxy" and does not list them as their actual name. When I switch away from the docker-proxy and use - /var/run/docker.sock:/var/run/docker.sock:ro instead it gets all ports (host machine and docker) and names everything correctly. Is this the intended behavior?

compose file for portracker:

services:
  portracker:
    image: mostafawahied/portracker:latest
    container_name: portracker
    restart: unless-stopped
    pid: "host"
    cap_add:
      - SYS_PTRACE
      - SYS_ADMIN
    security_opt:
      - apparmor:unconfined
    volumes:
      - ./portracker-data:/data
#      - /var/run/docker.sock:/var/run/docker.sock:ro
    ports:
      - "4999:4999"
    environment:
      - DOCKER_HOST=tcp://docker-proxy:2375

compose file for docker-socket-proxy:

services:
  dockerproxy:
    image: tecnativa/docker-socket-proxy:latest
    container_name: dockerproxy
    restart: unless-stopped
    expose:
      - "2375"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      AUTH: 0
      SECRETS: 0
      POST: 1 #When disabled, only GET and HEAD operations are allowed, meaning any section of the API is read-only.
      BUILD: 0
      COMMIT: 0
      CONFIGS: 0
      CONTAINERS: 1
      ALLOW_START: 1 #(containers/id/start)
      ALLOW_STOP: 1 #(containers/id/stop)
      ALLOW_RESTARTS: 1 #(containers/id/stop|restart|kill)
      DISTRIBUTION: 1
      EXEC: 1
      GRPC: 0
      IMAGES: 1
      INFO: 1
      NETWORKS: 1
      NODES: 0
      PLUGINS: 0
      SERVICES: 1
      SESSION: 0
      SWARM: 0
      SYSTEM: 0
      TASKS: 1
      VOLUMES: 1
      PING: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions