docker-machine on windows

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

2018-11-05 · 1 min · 63 words · Me

windows docker go

1、go mkdir directory aaa create file go_httpserver.go package main import ( “fmt” “net/http” ) func handler(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, “Welcome to my Website!!!\n %s”, r.URL.Path[1:]) } func main() { http.HandleFunc("/", handler) http.ListenAndServe(“0.0.0.0:80”, nil) } set GOARCH=amd64 set GOOS=linux go build go_httpserver.go => get linux go program 2、create docker image 2.1 install docker toolbox Link 2.2 run kitematic then see left-down DOCKER CLI , click it, then 2.2.1 create directory bbb 2.2.2 create Dockerfile ...

2017-12-13 · 1 min · 143 words · Me

docker db Volumes

http://dockone.io/article/128 http://container42.com/2014/11/18/data-only-container-madness/ http://dockone.io/article/129 在volume产生时,是docker run的准备阶段(create),而执行entrypoint.sh则是在启动阶段(start)

2017-09-11 · 1 min · 5 words · Me

[轉]Docker工具新手入門 用指令熟悉容器生命週期

http://netadmin.com.tw/article_content.aspx?sn=1708010003&jump=2

2017-08-10 · 1 min · word · Me

go control docker

https://blog.kowalczyk.info/article/w4re/using-mysql-in-docker-for-local-testing-in-go.html https://github.com/kjk/go-cookbook/tree/master/start-mysql-in-docker-go

2017-07-29 · 1 min · 2 words · Me