Ubutntu安装完Docker后,执行

<code class="language-bash hljs  has-numbering"><span class="hljs-built_in">sudo</span> service docker start</code>

提示

Failed to start docker.service: Unit docker.service is masked.

解决方案:

执行如下三条指令

<code class="language-bash hljs  has-numbering">systemctl unmask docker.service
systemctl unmask docker.socket
systemctl start docker.service
</code>
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐