公司网站换服务器怎么做,1688官网首页官网,html5源码,美团初期是怎么建网站1、查看系统版本 cat /proc/version 2、卸载可能存在或未安装成功的docker#xff08;新系统无需操作#xff09; apt-get remove docker docker-engine docker-ce docker.io 3、更新apt-get apt-get update 4、安装软件包允许apt-get通过 HTTPS 使用存储库 apt-get install …1、查看系统版本 cat /proc/version 2、卸载可能存在或未安装成功的docker新系统无需操作 apt-get remove docker docker-engine docker-ce docker.io 3、更新apt-get apt-get update 4、安装软件包允许apt-get通过 HTTPS 使用存储库 apt-get install ca-certificates curl gnupg lsb-release 5、添加GPG密钥并设置存储库 mkdir -p /etc/apt/keyrings 6、可以使用官方的也可以使用阿里云镜像源的这里用的是阿里云镜像源的GPG秘钥 curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add - 7、设置存储库 sudo add-apt-repository deb [archamd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable 8、更新apt-get apt-get update 9、安装docker时间略长耐心等待(执行命令后会提示是否继续输入y继续安装即可) apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin 10、安装完成后查询docker版本 docker version 11、查看docker状态 systemctl status docker 12、若没启动直接用如下命令启动 systemctl start docker 13、设置开机自启 systemctl enable docker