[ 
https://issues.apache.org/jira/browse/SUREFIRE-1840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17239558#comment-17239558
 ] 

Matthew Wang edited comment on SUREFIRE-1840 at 11/27/20, 7:52 AM:
-------------------------------------------------------------------

Yes, from what I've seen, it is required.

I would expect that this is because the docker daemon generally requires root 
level privileges.

For more information (~5 years old, but still applies):

[https://unix.stackexchange.com/questions/156938/why-does-docker-need-root-privileges]

Using docker without sudo/ root level access is currently experimental.

[https://docs.docker.com/engine/security/rootless/] 


was (Author: mslwang):
Yes, it is required.

I would expect that this is because the docker daemon generally requires root 
level privileges.

For more information (~5 years old, but still applies from what I've seen):

[https://unix.stackexchange.com/questions/156938/why-does-docker-need-root-privileges]

Using docker without sudo/ root level access is currently experimental.

[https://docs.docker.com/engine/security/rootless/] 

> Why sudo docker?
> ----------------
>
>                 Key: SUREFIRE-1840
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1840
>             Project: Maven Surefire
>          Issue Type: Bug
>          Components: documentation
>            Reporter: Sebb
>            Priority: Major
>              Labels: up-for-grabs
>
> The page
> https://maven.apache.org/surefire/maven-surefire-plugin/docker.html
> says
> "$ sudo docker build --no-cache -t my-image:1 -f ./Dockerfile ."
> Is sudo really needed here?
> If so, the reason should be explained and any limitations noted.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to