当尝试启用docker instace时,CentOS一直处于困扰状态

时间:2018-11-17 06:14:33

标签: docker centos docker-compose

我是Docker世界的新手。在Docker上安装了centOS-7,并持续遇到以下错误。我使用以下命令安装了docker-composed

我在这里所做的所有事情:Cannot connect to the Docker daemon. Is the docker daemon running on this host?,但对于具有CentOs盒的我来说却不起作用。

sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

Nect步骤

sudo chmod +x /usr/local/bin/docker-compose

下一步

sudo groupadd docker
sudo gpasswd -a $USER docker
sudo usermod -aG docker $USER
sudo usermod -aG docker $(whoami)
sudo systemctl enable docker.service

现在,当我执行最后一条命令时,即使rebbot VM没有启动,centOS机器也挂起了。我无法对那台机器执行ping操作。

我已经发布了步骤的每个日志-

[user@vannila ~]$ sudo curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
[sudo] password for dc-user:
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   617    0   617    0     0   1527      0 --:--:-- --:--:-- --:--:--  1531
100 11.2M  100 11.2M    0     0  1388k      0  0:00:08  0:00:08 --:--:-- 1822k
[user@vannila ~]$ sudo chmod +x /usr/local/bin/docker-compose
[user@vannila ~]$ sudo groupadd docker
groupadd: group 'docker' already exists
[user@vannila ~]$ sudo gpasswd -a $USER docker
Adding user dc-user to group docker
[user@vannila ~]$ sudo usermod -aG docker $USER
[user@vannila ~]$ sudo service docker status
Redirecting to /bin/systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
   Active: inactive (dead)
     Docs: https://docs.docker.com
[user@vannila ~]$ sudo usermod -aG docker $(whoami)
[user@vannila ~]$ sudo systemctl enable docker.service
Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.
[user@vannila ~]$ sudo systemctl start docker.service 

让我知道是否需要其他详细信息。

0 个答案:

没有答案