Loading... ![docker][1] > 本文使用的全自动安装脚本是[SuperManito][2]的作品,向大佬致谢! > 本文的操作环境是Ubuntu20.04,包括但不限于ubuntu ###系统与软件包的更新### apt-get update && apt-get upgrade -y ###安装今后必要的软件### apt-get install -y wget curl -y ###开始安装docker### bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/DockerInstallation.sh) > 交互选择对应的源下载安装的速度相对会更快和稳定,国内vps选择国内原,国外vps选择官方源 > 在安装成功结束,会打印出来docker与docker compose的版本信息 ###查询docker与docker compose版本### docker -v && docker-compsoe -v ###docker常用的命令### ####启动容器#### docker run <ARG> ... <IMAGE> ####停止容器#### docker stop <CONTAINER> ####删除容器#### docker rm <CONTAINER> ####更新镜像#### docker pull <IMAGE> > 本文摘抄自[SuperManito][3]的[项目][4],仅用于收藏学习与传播 [1]: https://zfile.211024.xyz/s/fs717t [2]: https://github.com/SuperManito [3]: https://github.com/SuperManito [4]: https://github.com/SuperManito/LinuxMirrors 最后修改:2022 年 11 月 13 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 0 文章如果帮到了你,那我可不得了了哇,哈哈哈!