Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Solve the Problem of Root Permission #2374

Closed
Tilyp opened this issue Jul 8, 2019 · 3 comments
Closed

How to Solve the Problem of Root Permission #2374

Tilyp opened this issue Jul 8, 2019 · 3 comments

Comments

@Tilyp
Copy link

Tilyp commented Jul 8, 2019

my code:

from io import BytesIO
from docker import APIClient
dockerfile = '''
             # Shared Volume
             FROM busybox:buildroot-2014.02
             VOLUME /data
             CMD ["/bin/sh"]
            '''
f = BytesIO(dockerfile.encode('utf-8'))
cli = APIClient(version='auto')
response = [line for line in cli.build(
                fileobj=f, rm=True, tag='yourname/volume'
            )]
print(response)

my error
DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))

@Tilyp Tilyp closed this as completed Jul 9, 2019
@manojsitapara
Copy link

Did you resolve this error? I am facing same error, can you please help me?

@yangm2
Copy link

yangm2 commented Apr 24, 2021

I just had the same problem. According to #1998, adding yourself to the docker group is one way resolve this.

@mvshvets
Copy link

mvshvets commented Jan 6, 2024

how did you solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants