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

LCOW - Linux containers on Windows (Hyper-V) docker builds broken #9541

Closed
2 tasks done
MythreyaK opened this issue Nov 17, 2020 · 5 comments
Closed
2 tasks done

LCOW - Linux containers on Windows (Hyper-V) docker builds broken #9541

MythreyaK opened this issue Nov 17, 2020 · 5 comments

Comments

@MythreyaK
Copy link

MythreyaK commented Nov 17, 2020

  • I have tried with the latest version of my channel (Stable or Edge)
  • I have uploaded Diagnostics
  • Diagnostics ID: 29EA61E7-1AC4-4FAE-B694-6C88C82080D8/20201117185507

Expected behavior

Docker builds my image

Actual behavior

Error during second state of any Dockerfile build

The command '/bin/sh -c apt update -y' returned a non-zero code: 4294967295: failed to shutdown container: container ae415998d2351e3f6c5a7d0c933cb6f55b2a8ce63e67ac19daf39a1f9b801c49 encountered an error during hcsshim::System::waitBackground: failure in a Windows system call: The virtual machine or container with the specified identifier is not running. (0xc0370110): subsequent terminate failed container ae415998d2351e3f6c5a7d0c933cb6f55b2a8ce63e67ac19daf39a1f9b801c49 encountered an error during hcsshim::System::waitBackground: failure in a Windows system call: The virtual machine or container with the specified identifier is not running. (0xc0370110)

Line breaks inserted:

The command '/bin/sh -c apt update -y' returned a non-zero code: 
4294967295: failed to shutdown container: container <long hash> encountered an error during 
hcsshim::System::waitBackground: failure in a Windows system call: The virtual machine or container with the 
specified identifier is not running. 
(0xc0370110): subsequent terminate failed container <long hash>encountered an error during 
hcsshim::System::waitBackground: failure in a Windows system call: The virtual machine or container with the 
specified identifier is not running. (0xc0370110)

Information

  • Windows Version: 19041.630
  • Docker Desktop Version: 2.4.2.0
  • Are you running inside a virtualized Windows e.g. on a cloud server or on a mac VM: No

Steps to reproduce the behavior

FROM ubuntu:latest as build-tools

RUN apt update -y

FROM build-tools as runner

RUN echo "Oh hey there" && echo "Build complete" >> /done
  1. Disable WSL2 backend and switch to 'Windows Containers' mode
  2. Use this dockerfile, and try to buid the image using LCOW (Linux containers on windows using Hyper-V isolation)
  3. Try to build the image using docker build -t test --isolation hyperv . or docker build -t nginx-test --platform linux . or docker build -t test ..
  4. It should error out in the second build step.
@stephen-turner
Copy link
Contributor

Thanks for the report, @MythreyaK. If you are getting an hcsshim error, the bug is in the upstream Engine code (https://github.com/moby/moby) rather than in Docker Desktop code itself. So I would suggest opening a bug report in moby/moby except that LCOW was only ever an experimental feature and is now deprecated (see https://github.com/docker/cli/blob/master/docs/deprecated.md#linux-containers-on-windows-lcow-experimental), so I don't think it is likely to get fixed. Both Microsoft's attention and ours has turned to WSL 2, which we would recommend instead. Sorry, I realise that doesn't solve your immediate problem, but that's the situation.

@MythreyaK
Copy link
Author

Please don't apologize, I'm better informed now, I couldn't find any info while looking for this error, so I thought I'd ask.
Thanks for letting me know. Given LCOW is deprecated, would you suggest I move this big report there, or leave it be? I find LCOW really useful since I can use both Linux and windows containers at the same time, and I feel it's snappier instead of a big fat VM running most of the time.

Thank you for your time, and pointing me to the right resources!

@stephen-turner
Copy link
Contributor

To be honest, I don't think it will get any attention if you do move it.

WSL 2 also doesn't involve a big fat VM, and is much faster as long as you keep your files in the Linux filesystem not the Windows filesystem. Granted you do still have to choose between Linux and Windows container modes: we have a roadmap item for that (docker/roadmap#79) but we haven't scheduled it yet.

@MythreyaK
Copy link
Author

Thanks for the info!

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants