Sign inSign up

uphy/dind-ssh

By uphy

Updated about 9 years ago

This image provides docker-in-docker with ssh access.

Image
0

1.9K

uphy/dind-ssh repository overview

dind with ssh server

This image provides docker-in-docker with ssh access.
You can use docker/docker-compose in this container.

Execute the following command.

$ docker network create dind-net
$ docker run --net dind-net -it --rm --privileged -p 10022:22 -v $(pwd)/data:/var/lib/docker uphy/dind:17.06.0-ce

I'm not sure why '--net' is required in my environment...

Configuration

Port

SSH is running with the port 22 in this container.
You can change the port by -p.

$ docker network create dind-net
$ docker run --net dind-net -it --rm --privileged -p 10022:22 -v $(pwd)/data:/var/lib/docker uphy/dind:17.06.0-ce

Volume

'dind' uses /var/lib/docker.
You can change the volume by -v.

$ docker network create dind-net
$ docker run --net dind-net -it --rm --privileged -p 10022:22 -v $(pwd)/data:/var/lib/docker uphy/dind:17.06.0-ce

Environment Variables

NameDescription
USERThe name of the SSH user
PASSWORDThe password of the SSH password
$ docker network create dind-net
$ docker run --net dind-net -it --rm --privileged -p 10022:22 -v $(pwd)/data:/var/lib/docker -e USER=foo -e PASSWORD=password uphy/dind:17.06.0-ce

Tag summary

Content type

Image

Digest

Size

52.8 MB

Last updated

about 9 years ago

docker pull uphy/dind-ssh