Docker Hub
hub.docker.com › r › p3terxEnter the id command to check UID and GID. $ id uid=1001 (p3terx) gid=1002 (p3terx) Modify the UID and GID. docker exec openwrt-build-env sudo usermod -u 1001 user docker exec openwrt-build-env sudo groupmod -g 1002 user. Modify the file ownership. docker exec openwrt-build-env sudo chown -hR user:user . Restart container.