Closed cfeltz34 closed 2 years ago
Fixed issue by redefining DOCKER_HOST variable :
export DOCKER_HOST="unix:$XDG_RUNTIME_DIR/podman/podman.sock"
I'm having the same issue but redefining the DOCKER host as suggested didn't resolve it. Can someone help?
Please open a new issue with all of your information.
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Start Podman with Rootless mode and compose container with docker-compose. --> PermissionError: [Errno 13] Permission denied (File "urllib3/connectionpool.py", line 677, in urlopen) No issue with Rootful mode
Steps to reproduce the issue:
On Redhat 8.5, install "Podman", "docker-compose" and "podman-docker"
yum module enable -y container-tools:rhel8 yum module install -y container-tools:rhel8 curl -L "https://github.com/docker/compose/releases/download/1.29.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose yum install -y podman-docker export PATH=/root/bin/:$PATH chmod 777 /var/run/docker.sock
Start Podman with
systemctl start podman.socket
orpodman system service --time=0 & export DOCKER_HOST="unix:/run/podman/podman.sock"
Create "docker-compose.rabbitmq.yml" file ` version: '3.7'
services: rabbitmq: container_name: rclms.rabbitmq image: docker.io/rabbitmq:3.9.13-management environment:
networks: network: `
docker-compose -f docker-compose.rabbitmq.yml up -d
Describe the results you received: ` Traceback (most recent call last): File "urllib3/connectionpool.py", line 677, in urlopen File "urllib3/connectionpool.py", line 392, in _make_request File "http/client.py", line 1277, in request File "http/client.py", line 1323, in _send_request File "http/client.py", line 1272, in endheaders File "http/client.py", line 1032, in _send_output File "http/client.py", line 972, in send File "docker/transport/unixconn.py", line 43, in connect PermissionError: [Errno 13] Permission denied
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "requests/adapters.py", line 449, in send File "urllib3/connectionpool.py", line 727, in urlopen File "urllib3/util/retry.py", line 410, in increment File "urllib3/packages/six.py", line 734, in reraise File "urllib3/connectionpool.py", line 677, in urlopen File "urllib3/connectionpool.py", line 392, in _make_request File "http/client.py", line 1277, in request File "http/client.py", line 1323, in _send_request File "http/client.py", line 1272, in endheaders File "http/client.py", line 1032, in _send_output File "http/client.py", line 972, in send File "docker/transport/unixconn.py", line 43, in connect urllib3.exceptions.ProtocolError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "docker/api/client.py", line 214, in _retrieve_server_version File "docker/api/daemon.py", line 181, in version File "docker/utils/decorators.py", line 46, in inner File "docker/api/client.py", line 237, in _get File "requests/sessions.py", line 543, in get File "requests/sessions.py", line 530, in request File "requests/sessions.py", line 643, in send File "requests/adapters.py", line 498, in send requests.exceptions.ConnectionError: ('Connection aborted.', PermissionError(13, 'Permission denied'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "docker-compose", line 3, in
File "compose/cli/main.py", line 81, in main
File "compose/cli/main.py", line 199, in perform_command
File "compose/cli/command.py", line 70, in project_from_options
File "compose/cli/command.py", line 153, in get_project
File "compose/cli/docker_client.py", line 43, in get_client
File "compose/cli/docker_client.py", line 170, in docker_client
File "docker/api/client.py", line 197, in init
File "docker/api/client.py", line 222, in _retrieve_server_version
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', PermissionError(13, 'Permission denied'))
[9561] Failed to execute script docker-compose
`
Describe the results you expected: Container RabbitMQ should start.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
docker-compose version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (Output of
hostnamectl
): Static hostname: SMR8-RC-UAT-API Icon name: computer-vm Chassis: vm Machine ID: b536df6814e24e8583eca2a68d16d5b0 Boot ID: 2936e5e43879468eb44319471baa5ddc Virtualization: vmware Operating System: Red Hat Enterprise Linux 8.5 (Ootpa) CPE OS Name: cpe:/o:redhat:enterprise_linux:8::baseos Kernel: Linux 4.18.0-348.12.2.el8_5.x86_64 Architecture: x86-64Additional environment details (Output of
hostnamectl
): Static hostname: SMR8-RC-UAT-API Icon name: computer-vm Chassis: vm Machine ID: b536df6814e24e8583eca2a68d16d5b0 Boot ID: 2936e5e43879468eb44319471baa5ddc Virtualization: vmware Operating System: Red Hat Enterprise Linux 8.5 (Ootpa) CPE OS Name: cpe:/o:redhat:enterprise_linux:8::baseos Kernel: Linux 4.18.0-348.12.2.el8_5.x86_64 Architecture: x86-64