Delete folder in container: /sobey, based on dockerfile implementation
1. The content of the Dockerfile is as follows
from registry-vpc.cn-beijing.aliyuncs.com/cmc/centos-nginx:2.2.20 Maintainer shuijingwanwq@163.com copy code /mcloud/www/pcs copy code/build_docker/c_files// run chown -r nginx:nginx /mcloud/www/ && \ rm -rf /etc/nginx/conf.d/status.conf
2. Since there are directories in the basic image: /sobey/www, and it is a blank directory, it is no longer needed. The basic image cannot be upgraded for a while, so I decided to delete the folder in the Dockerfile: /sobey. as shown in Figure 1
3. Add a new line: run rm -rf /sobey. The content of the Dockerfile is as follows. as shown in Figure 2
from registry-vpc.cn-beijing.aliyuncs.com/cmc/centos-nginx:2.2.20 Maintainer shuijingwanwq@163.com copy code /mcloud/www/pcs copy code/build_docker/c_files// run rm -rf /sobey run chown -r nginx:nginx /mcloud/www/ && \ rm -rf /etc/nginx/conf.d/status.conf
4. Check the build output of the container. It runs normally. as shown in Figure 3
Step 5/6 : run rm -rf /sobey ---> running in 2BF756E0C68E ---> FF2BA07C5178 Removing Intermediate Container 2BF756E0C68E
5. Enter the container, directory: /sobey no longer exists. in line with expectations. as shown in Figure 4



