The user jenkins
needs to be added to the group docker
:
sudo usermod -a -G docker jenkins
Then restart Jenkins.
Edit
If you arrive to this question of stack overflow because you receive this message from docker, but you don’t use jenkins, most probably the error is the same: your unprivileged user does not belong to the docker group.
You can do:
sudo usermod -a -G docker [user]
Insert your user name where [user]
is.
You can check it was successful by doing grep docker /etc/group
and see something like this:
docker:x:998:[user]
in one of the lines.
Then change your users group ID to docker
:
newgrp docker
Finally, log out and log in again
Related Posts:
- Error “The input device is not a TTY”
- How to restart Jenkins manually?
- Jenkins Project Artifacts and Workspac
- Tell Jenkins to run a specific project on a particular slave node
- How to fix “VirtualBox Interface has active connections” error in Windows?
- Docker: How to delete all local Docker images
- How to list containers in Docker
- Docker System has not been booted with systemd as init system
- How to fix “SSL certificate problem: self signed certificate in certificate chain” error?
- Downloading docker image for transfer to non-internet-connected machine
- How do I pass environment variables to Docker containers?
- Docker error : no space left on device
- How do I get into a Docker container’s shell?
- Copy directory to another directory using ADD command
- Copy directory to another directory using ADD command
- Error with pre-create check: “VBoxManage not found. Make sure VirtualBox is installed and VBoxManage is in the path”
- “OSError: [Errno 8] Exec format error” when trying to run simple flask app in a docker container
- Copy directory to another directory using ADD command
- What is the difference between a Docker image and a container?
- Brew install docker does not include docker engine?
- denied: requested access to the resource is denied : docker
- What is the difference between CMD and ENTRYPOINT in a Dockerfile?
- docker : invalid reference format
- What is the difference between the ‘COPY’ and ‘ADD’ commands in a Dockerfile?
- How to uninstall Docker completely from a Mac?
- Error – trustAnchors parameter must be non-empty
- How to easily install and uninstall docker on MacOs
- Docker can’t connect to docker daemon
- docker command not found even though installed with apt-get
- Where are Docker images stored on the host machine?
- Docker: Having issues installing apt-utils
- How to force Docker for a clean build of an image
- Issues while installing Docker on Windows 10 home edition
- gpg: no valid OpenPGP data found
- Jenkins: 403 No valid crumb was included in the request
- ERROR: Error cloning remote repo ‘origin’
- Docker error: invalid reference format: repository name must be lowercase
- Docker for Windows error: “Hardware assisted virtualization and data execution protection must be enabled in the BIOS”
- “docker build” requires exactly 1 argument(s)
- docker error : the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty’
- Docker: unable to prepare context: unable to evaluate symlinks in Dockerfile path: GetFileAttributesEx
- How does docker compare to openshift?
- Error response from daemon: getsockopt: connection refused
- Docker-compose container using host DNS server
- Correct way to detach from a container without stopping it
- build context for docker image very large
- Docker – Name is already in use by container
- Docker: How to clear the logs properly for a Docker container?
- Docker hv-sock proxy (vsudd) is not reachable windows
- Why does “docker attach” hang?
- How to get IP address of running docker container
- Running docker container : iptables: No chain/target/match by that name
- How to remove old Docker containers
- kubectl get pods shows ErrImagePull
- HyperV is not available on Home editions
- Change directory command in Docker?
- Webdriver Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms
- WP in Docker – cannot install plugin or upgrade WP
- Run WP-CLI using PHP
- Multiple WordPress sites with docker
- Docker compose with wordpress:cli-php7.4 stalls on ‘The site you have requested is not installed’?
- Using docker with wordpress, how to handle backups correctly?
- WordPress development using Docker – how to share directories? [closed]
- wp-admin Redirects to Docker Container Name
- Database access using docker
- docker on windows 10 with VVV [closed]
- How to update wp-config file in Docker
- Custom location for attached images
- How to create a network using a command line script?
- WPTerm ssh connection not working [closed]
- WordPress on Apache behind nginx using letsencypt issue with loginizer/limit login attempts
- wp-admin remove part of the url
- WordPress Permissions on my Local with Docker
- Install with docker – can’t access port
- Debugging high CPU usage during periods of inactivity
- Why is my child theme style.css not found (404) in the front-end? [closed]
- How and where are the provisioning script set up in WordPress?
- WordPress docker with empty responses to HTTP requests
- IP addresses to block to stop WP auto-update?
- Configuring Xdebug with docker compose
- WordPress REST API not working on localhost
- Duplicator Pro plugin with Docker on local?
- How to queue API requests with PHP in WordPress?
- WordPress /wp-admin redirect to wrong port in docker
- WordPress docker page is missing VIRTUAL_HOST variable
- Too many redirects error when change of base url
- Dockerized WordPress is having Nginx Proxy Issues
- How to remove an image tag in Docker without removing the image itself?
- Docker Container time & timezone (will not reflect changes)
- How can I override CMD when running a docker image?
- How to install tzdata on a ubuntu docker image?
- How can I debug a docker container initialization?
- How to handle security updates within Docker containers?
- Can you run Docker natively on the new Windows 10 (Ubuntu) bash userspace?
- Why do we use a OS Base Image with Docker if containers have no Guest OS?
- How do I auto-start docker containers at system boot?
- Can Mac OS X be run inside Docker? [closed]
- Is it possible to rerun kubernetes job?
- Make a Docker application write to stdout
- Setup existing WordPress site for local development and testing using docker