Run Docker Daemon in hyper container.
2.0K
https://github.com/ptptptptptpt/docker-in-hyper
Firstly, run a 'docker-in-hyper' container on hyper.sh (https://hyper.sh) :
$ hyper run -d -P hyperhq/docker-in-hyper
8dcb2ab017eb4603ae1d9a92ffc68e5cf0edec63e780f9180228eabfce47e028
$ hyper ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES PUBLIC IP
8dcb2ab017eb hyperhq/docker-in-hyper "/entrypoint.sh /bin/" 1 minutes ago Up 1 minutes 0.0.0.0:2375->2375/tcp clever-shirley
Now, we can 'exec' into the container and use docker:
$ hyper exec -it 8dcb2ab01 /bin/bash
[root@8dcb2ab017eb /]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Or, we can use a local docker CLI to access it remotely (need attaching a fip to the container) :
$ hyper fip attach x.x.x.x 8dcb2ab017eb
$ docker --host tcp://x.x.x.x:2375 ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Content type
Image
Digest
Size
118 MB
Last updated
over 9 years ago
docker pull hyperhq/docker-in-hyper