openwrt / docker

Docker containers of the ImageBuilder and SDK
GNU General Public License v2.0
463 stars 76 forks source link

Add sudo to the container #114

Closed moetayuko closed 1 year ago

moetayuko commented 1 year ago

https://github.com/openwrt/docker/commit/c8beb1bdf89cb22870c9c502e0054b4f9495b455 added sudo to the old Dockerfile, but the new image based on buildworker does not have sudo.

aparcar commented 1 year ago

If you need root within the container please use the command below.

docker run --rm -it --user root openwrt/imagebuilder
moetayuko commented 1 year ago

Directly using the root user for dev is unsafe IMO. sudo is preferred for temporary root access, such as apt install.