[Buildroot] [git commit branch/2021.08.x] support/docker: don't use sudo to build

Peter Korsgaard peter at korsgaard.com
Sat Dec 11 22:42:17 UTC 2021


commit: https://git.buildroot.net/buildroot/commit/?id=168e25719d455e4be06486e312b3c261c3c43dd3
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.08.x

On a properly setup machine, it is totally useless to use sudo to run
docker; it is very bad practice. Instead, users really should add
themselves to the docker group.

Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
Cc: Romain Naour <romain.naour at gmail.com>
Cc: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
Reviewed-by: Romain Naour <romain.naour at gmail.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
(cherry picked from commit 9f6a2dbe030b10eda2797430a87fffc34f8c4685)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 support/docker/Dockerfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/support/docker/Dockerfile b/support/docker/Dockerfile
index 9bd62a04fe..f31477c023 100644
--- a/support/docker/Dockerfile
+++ b/support/docker/Dockerfile
@@ -1,7 +1,7 @@
 # This Dockerfile generates the docker image that gets used by Gitlab CI
 # To build it (YYYYMMDD.HHMM is the current date and time in UTC):
-#   sudo docker build -t buildroot/base:YYYYMMDD.HHMM support/docker
-#   sudo docker push buildroot/base:YYYYMMDD.HHMM
+#   docker build -t buildroot/base:YYYYMMDD.HHMM support/docker
+#   docker push buildroot/base:YYYYMMDD.HHMM
 
 # We use a specific tag for the base image *and* the corresponding date
 # for the repository, so do not forget to update the apt-sources.list



More information about the buildroot mailing list