HUB
Sign inSign up
host-command logo

11notes/host-command

By 11notes

•Updated about 3 years ago

Run a Host Shell based on Alpine Linux. Small, lightweight and fast 🏔️

Image
0

449

11notes/host-command repository overview

⁠Alpine :: Host Command

Run a Host Shell based on Alpine Linux. Small, lightweight and fast 🏔️

This container will expose your hosts shell via web, do use at your own risk.

It was created for the reddit use BiltuDas_1⁠

⁠Run

docker run --name host-command \
  --network=host-command \
  -e HOST_IP=172.28.5.254 \
  -v .../id_ed25519:/root/.ssh/id_ed25519:ro \
  -d 11notes/host-command:[tag]

⁠Defaults

ParameterValueDescription
userrootuser
uid0user id
gid0group id
home/roothome directory of user root

⁠Environment

ParameterValueDefault
HOST_IPIP of the host running docker60

⁠Docker Network Example

docker network create \
  --driver=bridge \
  --subnet=172.28.0.0/16 \
  --ip-range=172.28.5.0/24 \
  --gateway=172.28.5.254 \
  host-command

You must create a private key on your host and enable key authentication via SSH. The docker container will connect via SSH and issue the commands.

⁠Parent

⁠Built with

⁠Tips

  • Do not run this container in production! Make a dedicated user with a gid/id and only allow access to the shell commands you need (like reboot, poweroff)
  • Do not run this container as root but as a dedicated user on your host

Tag summary

Content type

Image

Digest

sha256:c1e75a0aa…

Size

135.1 MB

Last updated

about 3 years ago

docker pull 11notes/host-command:1.0.0