安装配置Docker
Last updated
Was this helpful?
Last updated
Was this helpful?
所有版本的安装文档在都可以找到。
以在ubuntu上安装docker为例:,只需要执行两步即可安装成功:
如果想要让非root用户也能使用root,需要将该用户加到docker组:
Docker daemon的配置文件为/etc/docker/daemon.json
,修改它即可。
Docker daemon默认使用brdige docker0,它创建的bridge模式的container将会加入到该bridge上。如果想用别的bridge,增加下面选项即可。
fixed-cidr必须与bridge在同一个网段(因此要求bridge必须要有ip,否则配置的bridge将不起作用,docker依旧将使用bridge docker0)。
Configure and troubleshoot the Docker daemon:
Build your own bridge:
Customize the docker0 bridge: