Отсутствует папка .docker в Ubuntu - PullRequest
0 голосов
/ 25 сентября 2018

Я следовал официальному руководству и установил docker-ce в Ubuntu 18.04 x64.

В соответствии с инструкциями Управление Docker от имени пользователя без полномочий root , Iпопытался изменить владельца папки .docker и получил ошибку «Нет такого файла или каталога»:

$ sudo chown "$USER":"$USER" /home/"$USER"/.docker -R
chown: cannot access '/home/eric/.docker': No such file or directory

На самом деле у меня даже нет папки .docker:

$ ls ~/.docker
ls: cannot access '/home/eric/.docker': No such file or directory

На более раннем этапе я смог успешно запустить контейнер hello-world:

$ sudo docker run hello-world
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.
    (amd64)
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 ID:
https://hub.docker.com/

For more examples and ideas, visit:
https://docs.docker.com/get-started/

Что я сделал не так?

1 Ответ

0 голосов
/ 29 октября 2018

Имея ту же проблему.Это наконец-то сработало для меня после того, как я перезапустил свой ноутбук (на котором установлена ​​Ubuntu 18.04).Выйти из системы и обратно недостаточно.

Вручную создайте папку .docker, используя mkdir .docker, прежде чем перезапускать.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...