Files
tldr/pages.zh/linux/dockerd.md

24 lines
571 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# dockerd
> 一个持久进程,用于启动和管理 Docker 容器。
> 更多信息:<https://docs.docker.com/reference/cli/dockerd/>.
- 运行 Docker 守护进程:
`dockerd`
- 运行 Docker 守护进程并配置其监听特定套接字UNIX 和 TCP
`dockerd --host unix://{{path/to/tmp.sock}} --host tcp://{{ip}}`
- 使用特定的守护进程 PID 文件运行:
`dockerd --pidfile {{path/to/pid_file}}`
- 以调试模式运行:
`dockerd --debug`
- 运行并设置特定的日志级别:
`dockerd --log-level {{debug|info|warn|error|fatal}}`