https://stackoverflow.com/questions/34624510/how-to-use-makefile-in-docker-machine
tce-load -wi make
https://www.portainer.io/
docker run -d -p 9000:9000 --restart always -v /var/run/docker.sock:/var/run/docker.sock -v /opt/portainer:/data portainer/portainer 今天發現一個docker gui管理工具
https://www.portainer.io/
很符合簡單管理
先用docker-machine開一台機器,直接就是docker ready的VM ,VM可以是virtualbox等等
然後登入後,直接用 啟動 portainer的docker,管理這台機器上的docker
有圖形化介面,可以看到每一個docker使用情況,又可以直接登入到docker內,web terminal,這樣就有符合實際使用情況了
docker資料有用volume寫到本機vm內,再把整台vm打包備份的話,資料又不容易不見
1、Get key Key Path
c:\user\xxxooo\.docker\machine\machines\%%%%%
xxxooo user
%%%%% machine name
id_rsa This is key 2、Need vm ip、id_rsa Get IP:
1. docker-machine ssh %%%%%
2. ifconfig
If need PPK:winscp can auto change id_rsa to ppk
3、last step login VM account:docker ===========
https://github.com/boot2docker/boot2docker
Docker Machine auto logs in using the generated SSH key, but if you want to SSH into the machine manually (or you’re not using a Docker Machine managed VM), the credentials are:
1、close hyper-v
https://ugetfix.com/ask/how-to-disable-hyper-v-in-windows-10/
2、install Virtualbox
3、install git
4、https://docs.docker.com/machine/install-machine/#install-machine-directly
git-bash
base=https://github.com/docker/machine/releases/download/v0.14.0 && mkdir -p “$HOME/bin” && curl -L $base/docker-machine-Windows-x86_64.exe > “$HOME/bin/docker-machine.exe” && chmod +x “$HOME/bin/docker-machine.exe”
5、
git-bash
docker-machine create –driver=virtualbox machine1
docker-machine -s d:\docker create –driver=virtualbox machine1
docker-machine list
docker-machine ssh machine1
docker run hello-world
docker-machine env machine1
https://hk.saowen.com/a/00c8a80e4a74fcf80111ba570f4db601e204c12f61e3109fec92cac8a15456ae
docker-machine -s d:\docker create --driver=virtualbox --virtualbox-memory=2048 --virtualbox-cpu-count=2 --engine-opt dns=8.8.8.8 machine_name_ooxxooxx
=====
http://sueboy.blogspot.com/2018/11/docker-machine-ssh-login-use-xshell-or.html
user: docker
id_rsa