Closed moetayuko closed 1 year ago
If you need root within the container please use the command below.
docker run --rm -it --user root openwrt/imagebuilder
Directly using the root user for dev is unsafe IMO. sudo is preferred for temporary root access, such as apt install.
https://github.com/openwrt/docker/commit/c8beb1bdf89cb22870c9c502e0054b4f9495b455 added sudo to the old Dockerfile, but the new image based on buildworker does not have sudo.