Skip to main content

Docker

Overview

Lists containers and/or Swarm tasks from a Docker Engine API endpoint. Rows use provider: docker with meta.kind of container or swarm_task. Interactive use is docker exec / docker cp, not SSH into the container network.

Minimal auth

Depends on how you reach the daemon:

ModeMinimal setup
Local socketMembership in docker group (or root); default DOCKER_HOST / /var/run/docker.sock
TCPReachable tcp:// endpoint and any daemon TLS/auth it requires
Moby ssh://SSH access as configured in the URL (host: ssh://user@host)
Honey SSHSSH to the VM (via_local / via_ssh) plus permission to dial docker.sock (often sudo + run_as)

No honey-specific API keys.

Config (YAML)

Example file: examples/config/docker.yaml

backends:
docker:
- name: local
host: "" # empty = DOCKER_HOST / local socket
mode: containers # containers | swarm | both
all_containers: false
- name: vm-docker
via_local: lab # backends.local[].name
socket: /var/run/docker.sock
run_as: root
platform: linux
- name: remote-ssh
via_ssh:
host: 10.0.0.1
user: deploy
identity_file: ~/.ssh/id_ed25519
socket: /var/run/docker.sock
FieldRequired
nameYes
host, via_local, via_ssh, socket, mode, platform, run_as, all_containersOptional

CLI (no config file)

FlagPurpose
--docker-hostunix://, tcp://, ssh://, or empty
--docker-modecontainers, swarm, both
--docker-allInclude stopped containers
--docker-via-localHoney SSH via named local backend
--docker-via-ssh-hostExplicit SSH host for Honey hop
--docker-socketRemote socket path
--docker-platformlinux or windows

Verify

honey search --provider docker -o json
honey search --provider docker --docker-host unix:///var/run/docker.sock -o json

Notes

  • Auto-discover on cloud VMs (second pass after GCP/AWS): experimental; see Docker auto-discover. Requires HONEY_FEATURE_DOCKER_VIA_PROVIDERS=1 and is not in YAML today.
  • Moby ssh:// does not use honey’s ~/.ssh/config integration; use via_ssh for ProxyJump and honey SSH features.