For the image that has been built, I modified the configuration file. When I built it again, the container did not run and the configuration did not work.

  docker, question

My project address: …
This is the Dockerfile code under nginx.

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

I built it before, then I modified the configuration and rebuilt the image. It is still useless to run it in the container. The following is the build log
View build log

1docker image building is started   ...
 2[ fetch stage begin.]
 3fetch dockerfile and context
 4HEAD is now at cbdd606... s
 5[fetch successfully.]
 7[docker version.]
 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
 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
 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.]
 43[push stage begin.]
 44docker push
 45The push refers to a repository []
 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"}

I’ve solved it myself. I just need to redeploy it again.