docker sshd using lightweight Alpine Linux container (official)
392
Run sshd from a docker container
Key features of this repository:
openssh: 8.6_p1
To use this package you must ensure the following:
git clone https://github.com/hobbsAU/docker-sshd.git
cd docker-sshd
make run
docker pull hobbsau/sshd
$ make run
$ make stop
$ make start
$ make clean
$ make build
First let's setup the data container that will map the config directory from the host to the container as well as the output directory. This container will provide persistent storage.
$ docker create \
--name aria2-data \
-v <hostdir>:/config \
-v <hostdir>:/mnt \
hobbsau/aria2 \
/bin/true
Example using my host and the /srv/aria2 location on my host:
$ sudo docker create --name aria2-data -v /srv/aria2/config:/config -v /srv/aria2/mnt:/mnt hobbsau/aria2
Next we run the aria2-service and this will automatically map the volumes within the new container.
$ docker run -d \
--restart=always \
--volumes-from aria2-data \
--name aria2-service \
hobbsau/aria2
You should see two new containers in the docker listing:
$ docker ps -a
The source repo is linked to dockerhub using autobuild. Any push to this repo will auto-update the docker image on docker hub.
Content type
Image
Digest
Size
5.5 MB
Last updated
over 5 years ago
docker pull hobbsau/sshd