A quick way to avoid that. Add your user to the group.
sudo gpasswd -a $USER docker
Then set the proper permissions.
sudo setfacl -m "user:$USER:rw" /var/run/docker.sock
Should be good from there.
More Related Contents:
- Docker: How to use bash with an Alpine based docker image?
- How to mount a host directory in a Docker container
- Clone private git repo with dockerfile
- How to create User/Database in script for Docker Postgres
- Using the RUN instruction in a Dockerfile with ‘source’ does not work
- How to pass arguments to Shell Script through docker run
- Check if image:tag combination already exists on docker hub
- access host’s ssh tunnel from docker container
- Missing Carriage Return in Docker for Mac Containers
- apt-get install tzdata noninteractive
- docker entrypoint running bash script gets “permission denied”
- Get Environment Variable from Docker Container
- How to set uid and gid in Docker Compose?
- Difference between single and double quotes in Bash
- An efficient way to transpose a file in Bash
- Usage of :- (colon dash) in bash
- What is the preferred Bash shebang?
- Bash script compare two date variables [duplicate]
- What is the difference between ${var}, “$var”, and “${var}” in the Bash shell?
- How does this bash fork bomb work? [duplicate]
- Docker how to run pip requirements.txt only if there was a change?
- How can I get a recursive full-path listing, one line per file?
- What’s a concise way to check that environment variables are set in a Unix shell script?
- Using bash to sort data horizontally
- Best way to simulate “group by” from bash?
- Assign a makefile variable value to a bash command result?
- ^word^replacement^ on all matches in Bash?
- How to strip out all of the links of an HTML file in Bash or grep or batch and store them in a text file
- Subtract two variables in Bash
- Multidimensional associative arrays in Bash