相信很多使用Ubuntu安装docker的小伙伴都遇到过:安装号docker后,无法启动的尴尬场景.
按照官方文档,安装好docker后, 运行 sudo docker run hello-world.命令行提示:
andre@andre-vm:~$ sudo docker run hello-world Post http:///var/run/docker.sock/v1.20/containers/create: dial unix /var/run/docker.sock: no such file or directory. * Are you trying to connect to a TLS-enabled daemon without TLS? * Is your docker daemon up and running?
然后,....然后就没了,这可怎么办呢?, 经过复制, 粘贴, 搜索, 找到了一篇文章,顺利解决问题.我在这里记录一下,主要是备忘.
解决办法:
在命令行中运行:
$ sudo service docker start
得到如下提示信息,就OK啦:
docker start/running, process 6515
然后,就可以使用docker尽情的玩耍了....... 如:
docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world 535020c3e8ad: Pull complete af340544ed62: Pull complete library/hello-world:latest: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security. Digest: sha256:02fee8c3220ba806531f606525eceb83f4feb654f62b207191b1c9209188dedd Status: Downloaded newer image for hello-world:latest Hello from Docker. This message shows that your installation appears to be working correctly. To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal. To try something more ambitious, you can run an Ubuntu container with: $ docker run -it ubuntu bash Share images, automate workflows, and more with a free Docker Hub account: https://hub.docker.com For more examples and ideas, visit: https://docs.docker.com/userguide/
详细参考: Ubuntu deb doesn't start docker after installation #15620
相关推荐
docker-engine_17.05.0_ce-0_ubuntu-trusty_amd64.deb libgcrypt20_1.8.1-4ubuntu1_amd64.deb libltdl7_2.4.6-2_amd64.deb libsystemd-journal0_204-5ubuntu20_amd64.deb 4 个文件放到同一目录 2. 运行命令...
deb包完美进行离线安装docker,适用于ubuntu系统,Kylin系统,给出安装过程有可能缺少库依赖的解决办法,以后对于deb包缺少以赖库都可以用此方法
该资源包中有离线安装和写在docker的全部脚本,方便大家使用
3、sudo dpkg -i docker-ce_20.10.7_3-0_ubuntu-xenial_amd64.deb 查看Docker的版本 sudo docker --version 如果不想每次执行docker命令的时候使用sudo,可执行如下命令: sudo usermod -aG docker 登录账号
toolkit_1.5.1-1_amd64.deb nvidia-docker2_2.6.0-1_all.deb 2)docker:containerd.io_1.6.26-1_amd64.deb,docker-buildx-plugin_0.11.2-1~ubuntu.20.04~focal_amd64.deb,docker-ce_24.0.7-1~ubuntu.20.04~focal_...
ubuntu系统docker离线升级步骤及安装包
从官方拉取的ubuntu18.04系统的docker-nvidia2安装包,解压后直接dpkg -i *.deb安装即可
Ubuntu虚拟机中Docker安装包。
运行如下命令进行安装: $ unzip nvidia-docker2_deb.zip $ cd nvidia-docker2_deb $ dpkg -i ./*.deb
ubuntu使用deb包离线安装docker依赖包。sudo dpkg -i docker-ce-cli_19.03.9~3-0~ubuntu-xenial_amd64.deb。
ubuntu18.04系统安装docker所需软件: containerd.io_1.4.8-1_armhf.deb docker-ce-cli_18.09.4_3-0_ubuntu-bionic_armhf.deb docker-ce_18.09.4_3-0_ubuntu-bionic_armhf.deb libhavege1_1.9.1-3_armhf.deb ...
ubuntu 16.04 docker 离线安装包 docker-ce_18.03.1 上传到服务器,执行安装命令 # sudo dpkg -i libltdl7_2.4.6-0.1_amd64.deb # sudo dpkg -i libseccomp2...# sudo dpkg -i docker-ce_18.03.1~ce-0~ubuntu_amd64.deb
ubuntu安装docker 安装Docker在Ubuntu上相对简单,您可以按照以下步骤进行: 1. **更新包列表**: ```bash sudo apt update ``` 2. **安装必要的软件包,以允许apt使用HTTPS来访问Docker仓库**: ```bash sudo ...
Ubuntu 18.04 离线安装 docker17.05.0-ce 安装包,亲测成功: 安装步骤: 1. 将本文件夹中的 4 个文件放到 Ubuntu 任意一个文件中(一般用户目录下) 2. 运行这行命令离线安装 docker: dpkg -i *.deb 3. 运行这行...
内含三个依赖包和一个docker安装包:libgcrypt20_1.6.1-2ubuntu1.14.04.1_amd64.deb、libltdl7_2.4.2-1.7ubuntu1_amd64.deb、libsystemd-journal0_204-5ubuntu20.25_amd64.deb、docker-engine_1.12.5-0-ubuntu-...
安装docker,sudo dpkg -i docker-ce_17.03.2~ce-0~ubuntu-xenial_amd64.deb所使用的文件
nvidia tx2 jetson3.x下使用正常的docker ce, 比apt install docker.io要强大。
ubuntu使用deb包离线安装docker容器,sudo dpkg -i docker-ce_19.03.9~3-0~ubuntu-xenial_amd64.deb。
docker-ce_18.06.3_ce_3-0_ubuntu_amd64的离线安装包。deb版本的。unubtu14.04的docker-ce离线包
ubuntu centos linux 等系统离线安装docker.1.12.deb。