操作系统:Ubuntu 服务器版(无头)20.04 LTS。
尝试运行 makemkv 容器:https://hub.docker.com/r/jlesage/makemkv
docker-compose.yml 文件:
version: '3'
services:
makemkv:
image: jlesage/makemkv
ports:
- "5800:5800"
volumes:
- "/config:/config:rw"
- "/storage:/storage:ro"
- "/output:/output:rw"
devices:
- "/dev/sr0:/dev/sr0"
# - "/dev/sg2:/dev/sg2"
iptables 中开放了 5800 端口:
-A INPUT -p tcp --dport 5800 -m state --state NEW -j ACCEPT
-A INPUT -p udp --dport 5800 -m state --state NEW -j ACCEPT
命令:sudo docker compose up -d
结果:
[+] Running 0/0
⠿ Network makemkv_default Error 0.0s
failed to create network makemkv_default: Error response from daemon: Failed to program FILTER chain: iptables failed: iptables --wait -I FORWARD -o br-48dd0ff8ab37 -j DOCKER: iptables v1.8.4 (legacy): Couldn't load target `DOCKER':No such file or directory
有什么建议吗?
答案1
我删除了容器和相关网络,然后运行以下命令:sudo systemctl restart docker
然后我就能运行以下命令并且一切正常:sudo docker compose up -d