Skip to content

Instantly share code, notes, and snippets.

@anarcher
Last active December 30, 2015 03:28
Show Gist options
  • Save anarcher/7769154 to your computer and use it in GitHub Desktop.
Save anarcher/7769154 to your computer and use it in GitHub Desktop.
docker ubuntu /sbin/init
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