This file contains hidden or 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
| wget http://cloud-images.ubuntu.com/wily/current/wily-server-cloudimg-amd64-root.tar.gz | |
| openstack image create \ | |
| --public \ | |
| --container-format=bare \ | |
| --disk-format=raw \ | |
| --property architecture="x86_64" \ | |
| --property hypervisor_type=lxc \ | |
| --file wily-server-cloudimg-amd64-root.tar.gz \ | |
| ubuntu1510-lxc |
This file contains hidden or 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
| #demo-openstack | |
| sudo -i | |
| mkdir -p /opt/virt/kvm | |
| wget -N http://oss.fulltrust.co.jp/disk_images/STACK01.img -P /opt/virt/kvm | |
| wget -N http://oss.fulltrust.co.jp/disk_images/stack01.kvm -P /opt/virt/kvm | |
| virsh define /opt/virt/kvm/stack01.kvm | |
| virsh start STACK01 |
This file contains hidden or 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
| uvt-kvm Ubuntuで簡単に仮想マシンを利用するコマンド | |
| 1. インストール | |
| apt-get -y install uvtool | |
| 2. イメージの用意 | |
| uvt-simplestreams-libvirt sync arch=amd64 | |
| 単品の場合は | |
| uvt-simplestreams-libvirt sync release=trusty arch=amd64 |
This file contains hidden or 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
| 1.CoreOSのダウンロード | |
| mkdir -p /opt/virt/kvm/ ; cd /opt/virt/kvm/ | |
| wget http://alpha.release.core-os.net/amd64-usr/current/coreos_production_qemu_image.img.bz2 -O - | bzcat > core01.img | |
| #wget http://beta.release.core-os.net/amd64-usr/current/coreos_production_qemu_image.img.bz2 -O - | bzcat > core01.img | |
| #wget http://stable.release.core-os.net/amd64-usr/current/coreos_production_qemu_image.img.bz2 -O - | bzcat > core01.img | |
| 2.XMLの作成 | |
| vi core01.xml | |
| <domain type='kvm'> | |
| <name>coreos01</name> |
This file contains hidden or 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
| description "Docker daemon" | |
| start on filesystem and started lxc-net | |
| stop on runlevel [!2345] | |
| respawn | |
| script | |
| DOCKER=/usr/bin/$UPSTART_JOB | |
| DOCKER_OPTS= |
This file contains hidden or 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
| sed 's@/usr/bin/docker -d@/usr/bin/docker -d -H tcp://0.0.0.0:4243 -H unix:///var/run/docker.sock@' /etc/init/docker.conf | |
| docker run -p 8000:8000 shipyard/shipyard | |
| Username: admin Password: shipyard | |
| なんか微妙 | |
| https://github.com/dotcloud/docker/wiki/Public-docker-images |
This file contains hidden or 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
| #Saucy Image create | |
| #saucy install | |
| sudo debootstrap saucy saucy > /dev/null | |
| #useradd | |
| UBUNTU_USER=ubuntu | |
| UBUNTU_PASSWORD=ubuntu | |
| chroot saucy useradd --create-home -s /bin/bash $UBUNTU_USER | |
| chroot saucy adduser $UBUNTU_USER sudo | |
| echo "$UBUNTU_USER:$UBUNTU_PASSWORD" | chroot saucy chpasswd |
This file contains hidden or 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
| sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -" | |
| sudo sh -c "echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | |
| sudo apt-get update | |
| sudo apt-get install lxc-docker-0.6.1 -y | |
| vi /etc/init/docker.conf | |
| # /usr/bin/docker -d | |
| exec start-stop-daemon --start --chuid docker --exec /usr/bin/docker -d | |
| usermod -G docker nova |
This file contains hidden or 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
| git clone git@github.com: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 |
This file contains hidden or 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
| #プライベートリポジトリ用コンテナを起動 | |
| docker run -d -p 5000:5000 samalba/docker-registry | |
| #実験のために適当なコンテナを起動 | |
| docker run -i -t -d --name cent01 centos /bin/bash | |
| #起動したコンテナをコミットしてタグ付け | |
| docker commit cent01 test1/centos | |
| docker tag test1/centos 192.168.10.60:5000/centos_test |
NewerOlder