[
https://issues.apache.org/jira/browse/SUREFIRE-1840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17239819#comment-17239819
]
Matthew Wang edited comment on SUREFIRE-1840 at 11/27/20, 7:38 PM:
-------------------------------------------------------------------
I currently mainly use Manjaro Linux, but I do have a Mac, so I will say that I
have encountered both usages.
After doing some looking, here is the reasoning docker on Linux and macOS act
differently:
[https://www.amazee.io/blog/post/docker-on-mac-performance-docker-machine-vs-docker-for-mac]
" On Linux systems, Docker directly leverages the kernel of the host system,
and file system mounts are native.
On Windows and Mac, it’s slightly different. These operating systems do not
provide a Linux Kernel, so Docker starts a virtual machine with a small Linux
installed and runs Docker containers in there. File system mounts are also not
possible natively and need a helper-system in between, which both Docker and
Cachalot provide."
I ran `docker build` on my Linux system without sudo and it denied me
permission. I'd assume the Docker daemon runs directly on the Linux system
instead of in a VM, which I'd assume affects how users interact with docker
from the outside.
was (Author: mslwang):
So, I currently mainly use Manjaro Linux, but I do have a Mac, so I will say
that I have encountered both usages.
After doing some looking, here is the reasoning docker on Linux and macOS act
differently:
[https://www.amazee.io/blog/post/docker-on-mac-performance-docker-machine-vs-docker-for-mac]
" On Linux systems, Docker directly leverages the kernel of the host system,
and file system mounts are native.
On Windows and Mac, it’s slightly different. These operating systems do not
provide a Linux Kernel, so Docker starts a virtual machine with a small Linux
installed and runs Docker containers in there. File system mounts are also not
possible natively and need a helper-system in between, which both Docker and
Cachalot provide."
I ran `docker build` on my Linux system without sudo and it denied me
permission. I'd assume the Docker daemon runs directly on the Linux system
instead of in a VM, which I'd assume affects how users interact with docker
from the outside.
> 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
> Assignee: Tibor Digana
> 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)