修改Centos用户的UID、GID
前提是因为docker容器镜像内部用户与宿主机用户的uid,gid保持一致,否则无法正常写入文件问题...
于是乎,宿主机也需要修改uid,gid为:2888
[root@localhost ~]# id xinsec
uid=1001(xinsec) gid=1001(xinsec) 组=1001(xinsec)
usermod -u 2888 xinsec
groupmod -g 2888 xinsec
[root@localhost ~]# id xinsec
uid=2888(xinsec) gid=2888(xinsec) 组=2888(xinsec)