Last active
December 30, 2015 03:28
-
-
Save anarcher/7769154 to your computer and use it in GitHub Desktop.
docker ubuntu /sbin/init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: https://github.com/dotcloud/docker/issues/2276 | |
Use the script like this: | |
git clone https://github.com/makinacorpus/vms.git | |
cd docker | |
./make.sh make_image ubuntu | |
Run it: | |
docker run -d -p 2222:22 makinacorpus/ubuntu /sbin/init | |
ssh root@localhost -p 2222 | |
docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
787576835d26 ubuntu-init:latest /sbin/init 3 minutes ago Up 3 minutes 0.0.0.0:2222->22/tcp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment