Maison > Questions et réponses > le corps du texte
我的项目地址:
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"}
PHP中文网2017-04-27 09:05:40
Je l'ai résolu moi-même, il suffit de le redéployer et tout ira bien