ubuntu docker无法正常启动
Posted Dontla
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu docker无法正常启动相关的知识,希望对你有一定的参考价值。
[root@ubuntu /home/arnold]2# sudo apt-get install -y docker-ce
Reading package lists... Done
Building dependency tree
Reading state information... Done
docker-ce is already the newest version (5:20.10.7~3-0~ubuntu-xenial).
The following packages were automatically installed and are no longer required:
binutils-arm-linux-gnueabihf cpp-5-arm-linux-gnueabihf cpp-arm-linux-gnueabihf
gcc-5-arm-linux-gnueabihf gcc-5-arm-linux-gnueabihf-base gcc-5-cross-base
libasan2-armhf-cross libatomic1-armhf-cross libc6-armhf-cross
libc6-dev-armhf-cross libgcc-5-dev-armhf-cross libgcc1-armhf-cross
libgomp1-armhf-cross libstdc++6-armhf-cross libubsan0-armhf-cross
linux-libc-dev-armhf-cross
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up docker-ce (5:20.10.7~3-0~ubuntu-xenial) ...
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
invoke-rc.d: initscript docker, action "start" failed.
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Mon 2022-02-14 03:55:16 PST; 2ms ago
Docs: https://docs.docker.com
Process: 2989 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 2989 (code=exited, status=1/FAILURE)
Feb 14 03:55:16 ubuntu systemd[1]: docker.service: Main process exited, code=...RE
Feb 14 03:55:16 ubuntu systemd[1]: Failed to start Docker Application Contain...e.
Feb 14 03:55:16 ubuntu systemd[1]: docker.service: Unit entered failed state.
Feb 14 03:55:16 ubuntu systemd[1]: docker.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package docker-ce (--configure):
subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)
不知道啥原因,网上都找不到答案。。。
换个虚拟机试试
以上是关于ubuntu docker无法正常启动的主要内容,如果未能解决你的问题,请参考以下文章
Laravel Sail 在 Ubuntu 20.04 LTS 中无法正常工作
无法在 Ubuntu 16.04 中启动 Docker 服务