nginx - 已經建置過的鏡像,我修改了設定文件,再次建置的時候,運行容器的時候沒有,設定沒有起作用
怪我咯
怪我咯 2017-04-27 09:03:40
0
1
791

我的專案地址:
https://github.com/caojianx/j...
這是nginx 下的Dockerfile程式碼

From nginx:latest
COPY conf /etc/nginx/
ADD default_conf /etc/nginx/conf.d/
ADD project /usr/share/nginx/html/

之前建置過了,然後我修改了配置之後,重新建構鏡像,在容器裡運行還是沒有用,以下是建置日誌
查看建置日誌

1docker image building is started ...
2[ fetch stage begin.]
3fetch dockerfile and context
4HEAD is now at cbdd606... s
5[fetch successfully.]
6==========================================
7[docker version.]
8Client:
9 Version: 1.13.1
10 API version: 1.26
11 Go version: go1.7.5
12Git commit: 092cba3
13 Built: Wed Feb 8 06:38:28 2017
14 OS/Arch: linux/amd64
15Server:
16 Version: 1.13.1
17 API version: 1.26 (minimum version 1.12)
18 Go version: go1.7.5
19 Git commit: 092cba3
20 Built: Wed Feb 8 06:38:28 2017
21 OS/Arch: linux/amd64
22 Experimental: false
23==========================================
24[docker build stage begin.]
25Sending build context to Docker daemon 14.34 kB
26Step 1/4 : FROM nginx:latest
27latest: Pulling from library/nginx
28Digest: sha256:e6693c20186f837fc393390135d8a598a96a833917917789d63766cab6c59582
29Status: Image is up to date for nginx:latest
30 ---> 5766334bdaa0
31Step 2/4 : COPY conf /etc/nginx/
32---> 4be9a698b027
33Removing intermediate container 849a4ba53f51
34Step 3/4 : ADD default_conf /etc/nginx/conf.d/
35---> 5b2c328bf325
36Removing intermediate container 5240bc88c6ac
37Step 4/4 : ADD project /usr/share/nginx/html/
38---> 260a4255fdf3
39Removing intermediate container 7b946e1921cc
40Successfully built 260a4255fdf3
41[ build successfully.]
42==========================================
43[push stage begin.]
44docker push registry-internal.cn-hangzhou.aliyuncs.com/caojx_home/nginx:latest
45The push refers to a repository [registry-internal.cn-hangzhou.aliyuncs.com/caojx_home/nginx]
46714139c33233: Preparing
477be11ed49a03: Preparing
48ad7f5e4eca75: Preparing
4997b903fe0f6f: Preparing
5031fc28b38091: Preparing
51aca7b1f22e02: Preparing
525d6cbe0dbcf9: Preparing
53aca7b1f22e02: Waiting
545d6cbe0dbcf9: Waiting
5531fc28b38091: Layer already exists
5697b903fe0f6f: Layer already exists
57aca7b1f22e02: Layer already exists
585d6cbe0dbcf9: Layer already exists
59ad7f5e4eca75: Pushed
607be11ed49a03: Pushed
61714139c33233: Pushed
62latest: digest: sha256:c93d3da96d534b55307a38a2fc19039ede9fbfa07a9a7d82ef80cd037884fb0e size: 1777
63[push successfully.]
64{"exitCode":0, "message":"fetch build push successfully"}
怪我咯
怪我咯

走同样的路,发现不同的人生

全部回覆(1)
Ty80

我自己解決了,重新部署一遍就好了

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板