14 lines
609 B
Markdown
14 lines
609 B
Markdown
|
# 开机启动
|
||
|
systemctl enable docker
|
||
|
# 常见故障排查
|
||
|
## Failed to Setup IP tables: Unable to enable SKIP DNAT rule
|
||
|
``Something has deleted the docker iptables entries. Docker will recreate them if you restart it (`systemctl restart docker`). You'll want to disable anything else that manages iptables to prevent this from happening in the future.
|
||
|
即重启docker解决
|
||
|
|
||
|
## 进入
|
||
|
`docker exec -it docker-name /bin/bash`或`docker exec -it docker-name /bin/sh`
|
||
|
## 删除
|
||
|
`docker image prune -f -a` 删除所有不使用的镜像
|
||
|
## 更新
|
||
|
`docker compose pull`拉取更新
|
||
|
`docker compose up -d`启动
|