繁体   English   中英

macOS 中的 dockerd(Docker 守护进程)在哪里?

[英]Where is the dockerd (Docker Daemon) in macOS?

我试图了解 Docker 守护程序如何在我的 macOS 上工作。 谁能确认它是 - /Applications/Docker.app/Contents/MacOS/com.docker.supervisor 怎么不像在 Windows 和 Linux 中找到那么简单?

停靠路径 -

  • Windows C:\Program Files\Docker\Docker\resources\dockerd.exe
  • Linux /usr/bin/dockerd
  • macOS /Applications/Docker.app/Contents/MacOS/com.docker.supervisor - 假设,需要确认

我不知道您请求的信息有什么用,但是使用活动监视器您可以看到进程Docker在左侧有一个鲸鱼标志。 这是我认为的主要过程,它位于/Applications/Docker.app/Contents/MacOS/


参见pgrep -lf Docker

/Applications/Docker.app/Contents/MacOS $ pgrep -lf Docker
959 /Applications/Docker.app/Contents/MacOS/Docker --autostart
1037 /Applications/Docker.app/Contents/MacOS/com.docker.backend -watchdog
1052 /Applications/Docker.app/Contents/MacOS/com.docker.supervisor -watchdog
1145 com.docker.hyperkit -A -u -F vms/0/hyperkit.pid -c 4 -m 2048M -s 0:0,hostbridge -s 31,lpc -s 1:0,virtio-vpnkit,path=vpnkit.eth.sock,uuid=06bb4d78-917b-4fe8-a028-2b3bd61d8129 -U 7ac0630a-11d4-4837-8571-9d936ae8f75e -s 2:0,virtio-blk,file:///Users/teixeira/Library/Containers/com.docker.docker/Data/vms/0/Docker.qcow2?sync=os&buffered=1,format=qcow,qcow-config=discard=true;compact_after_unmaps=262144;keep_erased=262144;runtime_asserts=false -s 3,virtio-sock,guest_cid=3,path=vms/0,guest_forwards=2376;1525 -s 4,virtio-rnd -l com1,null,asl,log=vms/0/console-ring -f kexec,/Applications/Docker.app/Contents/Resources/linuxkit/kernel,/Applications/Docker.app/Contents/Resources/linuxkit/initrd.img,earlyprintk=serial page_poison=1 vsyscall=emulate panic=1 nospec_store_bypass_disable noibrs noibpb no_stf_barrier mitigations=off console=ttyS0 console=ttyS1  vpnkit.connect=connect://2/1999

The closest thing that offer a listen endpoint customization is the com.docker.backend binary, but as @BMitch has pointed, the daemon.json file is the way to customize the engine, and you can do it from the docker UI.

dockerd 进程不在 MacOS 上运行。 它在嵌入式 Linux VM 中运行。 所以你不应该用普通的 Mac 工具找到它。 相反,您会发现用于配置和控制 VM 的应用程序。 要了解该 VM 内部运行的内容,请查看linuxkit 项目,特别是docker-for-mac.yml 示例 但是请注意,这只是一个示例,不包括构成 Docker Desktop 的封闭源代码。

要在 Mac 的 Docker 中配置 dockerd,您可以从 UI 更新 daemon.json 文件

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM