mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 17:56:53 +02:00
.. | ||
keys | ||
docker-compose.yml | ||
docker-entrypoint.sh | ||
Dockerfile | ||
README.md |
openssh
docker-compose.yml
openssh:
image: vimagick/openssh
hostname: alpine
ports:
- "2222:22"
volumes:
- ./keys:/root/.ssh/keys
restart: always
up and running
$ cd ~/fig/openssh/
$ tree keys
├── joe.pub
├── kev.pub
└── tom.pub
$ docker-compose up -d
ssh login
$ ssh -p 2222 root@server