Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Pim van den Berg c58f97d2c8
continuous-integration/drone/push Build is passing Details
feat: install bind9-dnsutils
3 months ago
.drone.yml fix: configure MTU for docker:dind service to 1492 9 months ago
Dockerfile feat: install bind9-dnsutils 3 months ago
README.md feat: support configuring a shell for a user 9 months ago
build.sh fix(Dockerfile): fail build when apt-get fails 9 months ago
rebuild.sh fix(rebuild): the input device is not a TTY 7 months ago
setup.sh feat: install sudoers + allow sudo access for created users 9 months ago
start.sh feat: split setup to setup.sh and only run once 9 months ago


Jumpbox Docker container

  • Debian slim based image
  • OpenSSH server
  • User/group creation on startup

Supported tags and respective Dockerfile links


Environment variables

Key Format Description
ROOT_AUTHORIZED_KEYS /path/to/file Path to file that contains the public SSH keys that can be used for root user authentication. This file will be copied to /root/.ssh/authorized_keys
HOSTKEYS /path/to/hostkey;... Specifies a (semi-colon separated list of) file(s) containing a private host key used by SSH.
USERADD {username}:{uid}:{gid}:{shell};... Create user account(s) on startup
GROUPADD {groupname}:{gid};... Create group account(s) on startup
BASE_DIR /home Basedir used for user account creation (Default: /home)

docker run

$ docker run -it \
    --name jumpbox \
    -v $(pwd)/jumpbox:/var/lib/jumpbox \
    -e "ROOT_AUTHORIZED_KEYS=/var/lib/jumpbox/authorized_keys"
    -e "HOSTKEYS=/var/lib/jumpbox/ssh_host_ed25519_key;/var/lib/jumpbox/ssh_host_rsa_key"
    -e "USERADD=jumpbox:1000:1000:/bin/bash"
    -e "GROUPADD=jumpbox:1000"
    -p 1022:22 \


version: "3"

    container_name: jumpbox
    image: pommib/jumpbox:latest
      - "1022:22/tcp"
      - '${PWD}/jumpbox:/var/lib/jumpbox'
      ROOT_AUTHORIZED_KEYS: /var/lib/jumpbox/authorized_keys
      HOSTKEYS: /var/lib/jumpbox/ssh_host_ed25519_key;/var/lib/jumpbox/ssh_host_rsa_key
      USERADD: jumpbox:1000:1000:/bin/bash
      GROUPADD: jumpbox:1000