Skip to content

Instantly share code, notes, and snippets.

@hagix9
Last active December 27, 2015 08:48
Show Gist options
  • Save hagix9/7298585 to your computer and use it in GitHub Desktop.
Save hagix9/7298585 to your computer and use it in GitHub Desktop.
Docker用のOSイメージ
git clone [email protected]:hagix9/docker_images.git
cat centos-60.tar.xz | docker import - centos60
docker run -i -t -d -p 11111:22 --name centos01 centos60 /sbin/init
ssh root@localhost -p 11111 #PASSWORD: root
cat centos-61.tar.xz | docker import - centos61
docker run -i -t -d -p 11111:22 --name centos01 centos61 /sbin/init
ssh root@localhost -p 11111 #PASSWORD: root
cat centos-62.tar.xz | docker import - centos62
docker run -i -t -d -p 11111:22 --name centos01 centos62 /sbin/init
ssh root@localhost -p 11111 #PASSWORD: root
cat centos-63.tar.xz | docker import - centos63
docker run -i -t -d -p 11111:22 --name centos01 centos63 /sbin/init
ssh root@localhost -p 11111 #PASSWORD: root
cat centos-64.tar.xz | docker import - centos64
docker run -i -t -d -p 11111:22 --name centos01 centos64 /sbin/init
ssh root@localhost -p 11111 #PASSWORD: root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment