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

use sudo for pruning docker images #1046

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lachsdachs
Copy link
Contributor

The last part of the Docker update step was giving me the following error:

permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Head "http://%2Fvar%2Frun%2Fdocker.sock/_ping": dial unix /var/run/docker.sock: connect: permission denied
ERROR Removing dangling images failed: Command failed: '/usr/local/bin/docker image prune -f'

Manually executing /usr/local/bin/docker image prune -f with sudo worked fine, so i'm assuming that this was really just a permissions thing. I have not tested this fix and i'm not sure if i implemented it correctly, so please check the code. It seems weird that this issue has not come up before, could it be OS or distribution specific? I'm running Bedrock Linux/Kubuntu.

@lachsdachs
Copy link
Contributor Author

oh no

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

Successfully merging this pull request may close these issues.

1 participant