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

[BUG] Error since 2.29.3 when --force-recreate is used with container that mounts npipe - Error response from daemon: invalid mount config for type "bind": CreateFile \\.\pipe\docker_engine\ #12128

Open
mjusix opened this issue Sep 16, 2024 · 4 comments

Comments

@mjusix
Copy link

mjusix commented Sep 16, 2024

Description

With 2.29.3 the following docker-compose.yml in combination with the following command leads to an error:

docker-compose.yml:

    ...
    volumes:
      - \\.\pipe\docker_engine\:\\.\pipe\docker_engine\
    ...

command:
docker compose up -d --force-recreate <CONTAINER_NAME> --remove-orphans

I'm using a Admin-Powershell.

Steps To Reproduce

  1. Install docker-ce for Windows (10, 11, Server 2019, etc.)
    Invoke-WebRequest -UseBasicParsing "https://github.com/microsoft/Windows-Containers/Main/helpful_tools/Install-DockerCE/install-docker-ce.ps1" -o install-docker-ce.ps1 .\install-docker-ce.ps1
  2. Install docker compose
    choco install docker-compose --version=2.29.3 -y
  3. Create a docker-compose.yml like above.
  4. Open Admin-Powershell (v5)
  5. Run the following command in Admin-Powershell:
  6. docker compose up -d --force-recreate <CONTAINER_NAME> --remove-orphans

Compose Version

v2.29.3

Docker Environment

Client:
 Version:    26.1.4
 Context:    default
 Debug Mode: false
 Plugins:
  compose: Docker Compose (Docker Inc.)
    Version:  v2.29.3
    Path:     C:\ProgramData\Docker\cli-plugins\docker-compose.exe

Server:
 Containers: 8
  Running: 6
  Paused: 0
  Stopped: 2
 Images: 156
 Server Version: 26.1.4
 Storage Driver: windowsfilter
  Windows:
 Logging Driver: json-file
 Plugins:
  Volume: local
  Network: ics internal l2bridge l2tunnel nat null overlay private transparent
  Log: awslogs etwlogs fluentd gcplogs gelf json-file local splunk syslog
 Swarm: inactive
 Default Isolation: hyperv
 Kernel Version: 10.0 22631 (22621.1.amd64fre.ni_release.220506-1250)
 Operating System: Microsoft Windows Version 23H2 (OS Build 22631.4169)
 OSType: windows
 Architecture: x86_64
 CPUs: 8
 Total Memory: 31.69GiB
 Docker Root Dir: C:\ProgramData\Docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
 Product License: Community Engine

Anything else?

No response

@glours
Copy link
Contributor

glours commented Sep 17, 2024

Should have been fixed by https://github.com/docker/compose/releases/tag/v2.29.5

@mjusix
Copy link
Author

mjusix commented Sep 19, 2024

Thank you for your reply :)

I've updated now to 2.29.5, but I'm getting the following (new) error message:
Error response from daemon: invalid mount config for type "bind": invalid propagation mode: rprivate

Kind regards
Dominic

@samruddhikhandale
Copy link

've updated now to 2.29.5, but I'm getting the following (new) error message:
Error response from daemon: invalid mount config for type "bind": invalid propagation mode: rprivate

@glours Same here, since we updated to docker-compose v2.29.5, we started getting followings errors while creating docker compose containers 👇

Error response from daemon: invalid mount config: must use either propagation mode \"rslave\" or \"rshared\" when mount source is within the daemon root, daemon root: \"/var/lib/docker\", bind mount source: \"xyz\", propagation: \"rprivate\""}

Also, I'd like to highlight that we are using Linux distro where we could reproduce this issue.

@Crosenhain
Copy link

Downgrading to 2.29.2 on Linux seems to be a workaround for now.

I suspect that the change that introduced the problem is #12133 but I have yet to test reverting that change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants