You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Matthew Wang (Jira)" <ji...@apache.org> on 2020/11/27 07:52:00 UTC

[jira] [Comment Edited] (SUREFIRE-1840) Why sudo docker?

    [ 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:51 AM:
-------------------------------------------------------------------

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/] 


was (Author: mslwang):
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)