Ubuntu18.04安装docker失败
docker吧
全部回复
仅看楼主
level 1
Ubuntu18.04安装docker安装包失败,如下
Selecting previously unselected package bridge-utils.
(Reading database ... 84535 files and directories currently installed.)
Preparing to unpack .../bridge-utils_1.5-15ubuntu1_arm64.deb ...
Unpacking bridge-utils (1.5-15ubuntu1) ...
Setting up docker-ce (5:24.0.2-1~ubuntu.18.04~bionic) ...
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 Tue 2024-09-24 15:00:13 KST; 26ms ago
Docs: https://docs.docker.com
Process: 7451 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 7451 (code=exited, status=1/FAILURE)
dpkg: error processing package docker-ce (--configure):
installed docker-ce package post-installation script su
bp
rocess returned error exit status 1
Setting up bridge-utils (1.5-15ubuntu1) ...
Errors were encountered while processing:
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)
可以用docker -v查到版本号
无法正确启动docker,dockerd信息如下
INFO[2024-09-24T14:55:35.107138286+09:00] Starting up
INFO[2024-09-24T14:55:35.110239865+09:00] detected 127.0.0.53 nameserver, assuming systemd-resolved, so using resolv.conf: /run/systemd/resolve/resolv.conf
INFO[2024-09-24T14:55:35.156016880+09:00] [graphdriver] trying configured driver: vfs
INFO[2024-09-24T14:55:35.162399412+09:00] Loading containers: start.
WARN[2024-09-24T14:55:35.167027280+09:00] Running modprobe bridge br_netfilter failed with message: modprobe: WARNING: Module bridge not found in directory /lib/modules/4.19.232
modprobe: WARNING: Module br_netfilter not found in directory /lib/modules/4.19.232
, error: exit status 1
INFO[2024-09-24T14:55:35.182973256+09:00] unable to detect if iptables supports xlock: 'iptables --wait -L -n': `iptables v1.6.1: can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.` error="exit status 3"
INFO[2024-09-24T14:55:35.365994691+09:00] stopping event stream following graceful shutdown error="<nil>" module=libcontainerd namespace=moby
failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables v1.6.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
(exit status 3)
看了网上的说更改防火墙但是也不行。
update-alternatives: error: no alternatives for iptables
想更新内核也找不到包
E: Unable to locate package linux-headers-4.19.232
E: Couldn't find any package by glob 'linux-headers-4.19.232'
E: Couldn't find any package by regex 'linux-headers-4.19.232'
求解,谢谢
2024年09月24日 07点09分 1
level 6
闭关锁国了你不知道吗?现在不准用了!
2024年09月24日 12点09分 2
真的吗[啊],我用debian还能安装成功,Ubuntu就一直默认安装iptables1.6.1搞得没办法切换到legacy,就一直装不上[泪]
2024年09月27日 01点09分
1