顯示具有 docker 標籤的文章。 顯示所有文章
顯示具有 docker 標籤的文章。 顯示所有文章

2016年3月25日 星期五

Docker 出現 Error response from daemon: 404 page not found ....

網路上找到一堆奇奇怪怪的結法在我mac上都不適用

最後重開就好了

docker-machine stop && docker-machine start

不過唯一一個差別就是,404 page not found 的時候,我用 docker version 指令,只看得到,看起來是因為只剩client而導致404:
Client:
 Version:      1.10.2
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   c3959b1
 Built:        Mon Feb 22 22:37:33 2016
 OS/Arch:      darwin/amd64
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

而重啟之後,client 跟 server 都回來了:
Client:
 Version:      1.10.2
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   c3959b1
 Built:        Mon Feb 22 22:37:33 2016
 OS/Arch:      darwin/amd64

Server:
 Version:      1.10.2
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   c3959b1
 Built:        Mon Feb 22 22:37:33 2016
 OS/Arch:      linux/amd64


額外參考:

2016年3月10日 星期四

[過程記錄] Mac 上用 Docker 起 apache server

需求: 用 Docker 起 Apache Server,並且將 local (本機) 的 web 資料夾 Mount 到 Docker Container 的 web 資料夾。

安裝 Docker Toolbox
首先要安裝 Docker Toolbox,(昨天發現我還停留在 boot2docker...),進到官網,按下載,因為我是 Mac 所以我選左邊 Download~

Vue multiselect set autofocus and tinymce set autofocus

要在畫面一進來 focus multiselect 的方式: 參考: https://jsfiddle.net/shentao/mnphdt2g/ 主要就是在 multiselect 的 tag 加上 ref (例如: my_multiselect), 另外在 mounted...