卸载旧版docker开发中有很多名字(docker/docker.io/docker-engine),当前(2020/5/26)包名是docker-ce(Docker引擎社区)。可以尝试清理旧版本软件:sudoaptremovedockerdocker-enginedocker.iocontainerdruncinstalldependentpackages#updateindexsudoaptupdate#installdependentpackagessudoaptinstall\apt-transport-https\ca-证书\curl\gnupg-agent\software-properties-common添加存储库curl-fsSLhttps://download.docker.com/linux/ubuntu/gpg|sudoapt-keyadd-sudoadd-apt-repository"deb[arch=amd64]https://download.docker.com/linux/ubuntu$(lsb_release-cs)stable"确认docker版本$sudoaptupdate$aptpolicydocker-cedocker-ce:Installed:(none)Candidate:5:19.03.9~3-0~ubuntu-focal版本表:5:19.03.9~3-0~ubuntu-focal500500https://download.docker.com/linux/ubuntufocal/stableamd64Packagesinstalldockersudoaptinstalldocker-cedocker-ce-clicontainerd.io查看dockerstatussudosystemctlstatusdockerrunwithoutsudorootrun(rootless)在v19.03中引入,在v20.10GA中。添加和切换用户组#添加用户组#$USER为当前用户,可以替换为具体的用户名sudousermod-aGdocker$USER#切换用户组newgrpdockertestdockerrunhello-worlddockerrootless官方文档:https://docs.docker.com/engin...配置国内镜像源,加速创建或修改/etc/docker/daemon.json{"registry-mirrors":["https://registry.docker-cn.com","https://docker.mirrors.ustc.edu.cn","http://hub-mirror.c.163.com","https://cr.console.aliyun.com/"]}重新启动dockersudosystemctl重新启动docker查看$dockerinfo|grep-E"Registry|http"WARNING:Noswaplimitsupport注册表:https://index.docker.io/v1/注册表镜像:https://registry.docker-cn.com/https://docker.mirrors.ustc.edu.cn/http://hub-mirror.c.163.com/https://cr.console.aliyun.com/本文来自qbitsnap
