大神请进,docker镜像权限问题
2021-07-19 11:31:39
许振宇
  • 访问次数: 3
  • 注册日期: 2021-07-19
  • 最后登录: 2021-07-21
目前的项目在使用redis、mqtt等开源docker镜像,发现部署完成以后,在本地的镜像目录存在许多777权限的文件,如下所示:/var/lib/docker/overlay2/7b5f33fc544036a0c6c924e6a59f242d2cf9fd3ed0d5e8c32db9ad8ba7b6d4e2/diff/home/redis/bin/redis-benchmark/var/lib/docker/overlay2/7b5f33fc544036a0c6c924e6a59f242d2cf9fd3ed0d5e8c32db9ad8ba7b6d4e2/diff/home/redis/bin/redis-cli/var/lib/docker/overlay2/7b5f33fc544036a0c6c924e6a59f242d2cf9fd3ed0d5e8c32db9ad8ba7b6d4e2/diff/home/redis/bin/redis-server/var/lib/docker/overlay2/7b5f33fc544036a0c6c924e6a59f242d2cf9fd3ed0d5e8c32db9ad8ba7b6d4e2/diff/home/redis/etc/redis.conf/var/lib/docker/overlay2/7b5f33fc544036a0c6c924e6a59f242d2cf9fd3ed0d5e8c32db9ad8ba7b6d4e2/diff/home/redis/etc/redis.conf.template/var/lib/docker/overlay2/7b5f33fc544036a0c6c924e6a59f242d2cf9fd3ed0d5e8c32db9ad8ba7b6d4e2/diff/home/redis/etc/sentinel.conf.template/var/lib/docker/overlay2/7b5f33fc544036a0c6c924e6a59f242d2cf9fd3ed0d5e8c32db9ad8ba7b6d4e2/diff/home/redis/myrun.sh/var/lib/docker/overlay2/310d8d593c47ff9a2269dff2adebb9e1b9b78a5180bb9ce96a144a4b9ea6730a/diff/home/redis/bin/redis-benchmark/var/lib/docker/overlay2/310d8d593c47ff9a2269dff2adebb9e1b9b78a5180bb9ce96a144a4b9ea6730a/diff/home/redis/bin/redis-cli/var/lib/docker/overlay2/310d8d593c47ff9a2269dff2adebb9e1b9b78a5180bb9ce96a144a4b9ea6730a/diff/home/redis/bin/redis-server/var/lib/docker/overlay2/1558dcbe04e6ebf6607dce4f939dbbe054ec91e8687327186689e8b85590ade1/diff/home/redis/myrun.sh/var/lib/docker/overlay2/739dc31cfea8db596fdbaae739d577f2911c63c1a1e23d1f123a8cb4140f67fe/merged/home/redis/bin/redis-benchmark/var/lib/docker/overlay2/739dc31cfea8db596fdbaae739d577f2911c63c1a1e23d1f123a8cb4140f67fe/merged/home/redis/bin/redis-cli/var/lib/docker/overlay2/739dc31cfea8db596fdbaae739d577f2911c63c1a1e23d1f123a8cb4140f67fe/merged/home/redis/bin/redis-server/var/lib/docker/overlay2/739dc31cfea8db596fdbaae739d577f2911c63c1a1e23d1f123a8cb4140f67fe/merged/home/redis/etc/redis.conf/var/lib/docker/overlay2/739dc31cfea8db596fdbaae739d577f2911c63c1a1e23d1f123a8cb4140f67fe/merged/home/redis/etc/redis.conf.template/var/lib/docker/overlay2/739dc31cfea8db596fdbaae739d577f2911c63c1a1e23d1f123a8cb4140f67fe/merged/home/redis/etc/sentinel.conf.template/var/lib/docker/overlay2/739dc31cfea8db596fdbaae739d577f2911c63c1a1e23d1f123a8cb4140f67fe/merged/home/redis/myrun.sh由于公司安全规定,不允许环境中有非必需的777权限文件,我想知道这些文件的777权限是必需的吗?如果不是的话,应该如何治理?望大神们解答,谢谢。