docker pull debian:wheezy
啟動一個 container (from image)
docker run -it -name mycontainer debian:wheezy-it : 啟動 interactive shell 和 terminal
看某個container 當初啟動時的 mount path
docker inspect -f '{{.Mounts}}' containerid
docker pull debian:wheezy
docker run -it -name mycontainer debian:wheezy-it : 啟動 interactive shell 和 terminal
docker inspect -f '{{.Mounts}}' containerid
sudo lxc-create -P ~/10G -t download -n ubuntu1404 ... trusty amd64 ..完成,修改 rootfs 和 container config..
# Network configuration lxc.network.type = veth lxc.network.link = lxcbr0 lxc.network.flags = upchroot 改 passowrd,
sudo chroot ./rootfs #passwd ..啟動...等 5min, 因為網路沒設好...
sudo lxc-start -F -P ~/10G -n ubuntu1404這個版本在等 network interface 時沒有 message,所以看起來很像 hang 住...
auto eth0 iface eth0 inet static address 10.10.20.10 netmask 255.255.255.0 gateway 10.10.20.1 network 10.10.20.0 broadcast 10.10.20.25 dns-nameservers 10.244.128.5 10.244.128.6安裝 nginx, mysql-server, php
apt-get install nginx mysql-server php5-fpm php5-msql會問 mysql root password
fatal: unable to access 'https://github.com/phacility/phabricator.git/': Problem with the SSL CA cert (path? access rights?)這一篇 說,缺了package..
apt-get install ca-certificatesOK, clone 到 /usr/share/nginx/html (14.04 的 nginx root 在這裡)
sudo add-apt-repository ppa:ondrej/php但是加完還要 apt-get update,才找得到 ppa 的package。
./bin/storage destroy 很久... ./bin/storage upgrade --force 也很久..之後再登入就是 create administrator 的畫面了..
nginx -t 測試一下改完的 "default" site 內容對不對" systemctl reload nginx
<?php phpinfo();用 browser 看 http://servername/info.php 就可以看到 php 的info 頁面。
mke2fs -t ext4 -O ^has_journal /dev/sdXN
sudo apt-get install php5 php5-mysql php5-gd php5-dev php5-curl php-apc php5-cli php5-json nginx mysql-server結果 nginx-full 安裝失敗。