简体   繁体   English

使用Docker导入时权限被拒绝错误

[英]Permission denied error when using docker import

With docker, when I want to import a image from local file system I get an error. 使用docker,当我想从本地文件系统导入图像时,出现错误。

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 希望这可以帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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