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

docker desktop - connecting to docker socket inside container with different user than root is broken after updating to 4.19 #2450

Closed
szaimen opened this issue May 1, 2023 · 4 comments · Fixed by #2930
Labels
1. to develop Accepted and waiting to be taken care of blocked bug Something isn't working documentation Improvements or additions to documentation help wanted Extra attention is needed high High priority upstream

Comments

@szaimen
Copy link
Collaborator

szaimen commented May 1, 2023

This is a Docker Desktop 4.19 bug.
See docker/for-win#13447
and docker/for-mac#6823

Workaround for now: revert back to Docker Desktop 4.18. See docker/for-win#13447 (comment)

@szaimen szaimen added 0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working documentation Improvements or additions to documentation help wanted Extra attention is needed high High priority upstream blocked 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending approval or rejection. This issue is pending approval. labels May 1, 2023
@bobloadmire

This comment was marked as resolved.

@EwanBSmith
Copy link

This appears to be fixed with docker desktop 4.21 (at least on windows)

@moracabanas
Copy link

moracabanas commented Jul 19, 2023

Still having issues to access docker sock:

Container logs

If SELinux is enabled on your host, see https://github.com/nextcloud/all-in-one#are-there-known-problems-when-selinux-is-enabled
If you are on TrueNas SCALE, see https://github.com/nextcloud/all-in-one#can-i-run-aio-on-truenas-scale
If you are on Docker Desktop v4.19 or higher, see https://github.com/nextcloud/all-in-one/issues/2450
Cannot connect to the docker socket. Cannot proceed.

Docker desktop version

Server: Docker Desktop 4.21.1 (114176)
 Engine:
  Version:          24.0.2
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.4
  Git commit:       659604f
  Built:            Thu May 25 21:52:17 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.21
  GitCommit:        3dce8eb055cbb6872793272b4f20ed16117344f8
 runc:
  Version:          1.1.7
  GitCommit:        v1.1.7-0-g860f061
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Docker compose

version: '3'
services:
  nextcloud-aio-mastercontainer:
    image: nextcloud/all-in-one:latest
    container_name: nextcloud-aio-mastercontainer
    privileged: true
    security_opt: ["label=disabled"]
    environment:
      - SKIP_DOMAIN_VALIDATION=true
    restart: always
    ports:
      - '80:80'
      - '8080'
      - '8443'
    volumes:
      - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
      - /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
  nextcloud_aio_mastercontainer:
    name: nextcloud_aio_mastercontainer

@szaimen
Copy link
Collaborator Author

szaimen commented Jul 19, 2023

Please try this:

version: '3'
services:
  nextcloud-aio-mastercontainer:
    image: nextcloud/all-in-one:latest
    container_name: nextcloud-aio-mastercontainer
    environment:
      - SKIP_DOMAIN_VALIDATION=true
    restart: always
    ports:
      - '80:80'
      - '8080:8080'
      - '8443:8443'
    volumes:
      - nextcloud_aio_mastercontainer:/mnt/docker-aio-config
      - //var/run/docker.sock:/var/run/docker.sock:ro
volumes:
  nextcloud_aio_mastercontainer:
    name: nextcloud_aio_mastercontainer

Also see https://github.com/nextcloud/all-in-one#how-to-run-aio-on-windows

For further help, please ask at https://github.com/nextcloud/all-in-one/discussions/new?category=questions

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1. to develop Accepted and waiting to be taken care of blocked bug Something isn't working documentation Improvements or additions to documentation help wanted Extra attention is needed high High priority upstream
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants