简体   繁体   中英

Permission denied error when using docker import

With docker, when I want to import a image from local file system I get an error.

This is the command I am using:

sudo cat Downloads/debian-6.0-x86_64-minimal.tar.gz  |docker import - debi

The result:

Post http:///var/run/docker.sock/v1.20/images/create?fromSrc=-&repo=debi: dial unix /var/run/docker.sock: permission denied.

* Are you trying to connect to a TLS-enabled daemon without TLS?

* Is your docker daemon up and running?

How can I deal with it?

Have you checked if your Daemon is actually running?

sudo docker info

If it doesn't give you your docker info then your daemon isn't set up correctly. This usually happens to me when I've rebooted my machine.

sudo service docker restart

or

sudo docker -H unix:///var/run/docker.sock -d &

Hope this helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM