Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

Linux containers [LCOW] not working after tweaking instructions #22

Closed
lohithcode opened this issue Mar 30, 2018 · 14 comments
Closed

Linux containers [LCOW] not working after tweaking instructions #22

lohithcode opened this issue Mar 30, 2018 · 14 comments

Comments

@lohithcode
Copy link

lohithcode commented Mar 30, 2018

As per the instructions, just running the daemon
.\dockerd.exe -D --experimental
and trying to pull the 'busy box' image not working still windows only.
--error
docker run --platform linux --rm -ti busybox sh
docker.io/library/busybox:latest resolved to a manifestList object with 8 entries; looking for a windows/amd64 match

I tried with these env settings as well to start daemon as well .. still same issue..

@rn
Copy link
Member

rn commented Apr 1, 2018

what's your version of the the docker daemon and CLI, ie output of docker version?

@lohithcode lohithcode changed the title Linux containers [LCOW] working after tweaking instructions Linux containers [LCOW] not working after tweaking instructions Apr 2, 2018
@riezebosch
Copy link

Have it working using this gist on Windows Server Core 1709 (OS version 10.0.16299.0).

@JensNordenbro
Copy link

I also cannot get LCOW to work on Windows Server 2019. I can see that your posts are ~½ year old and looking at your gist @riezebosch it seems to me that this is still an experimental feature although I have read at https://docs.microsoft.com/en-us/windows-server/get-started-19/whats-new-19 , paragraph "Linux containers on Windows":

"It is now possible to run Windows and Linux-based containers on the same container host, using the same docker daemon. This enables you to have a heterogenous container host environment while providing flexibility to application developers."

What are your thoughts on this, is it supported or not ?

@rn
Copy link
Member

rn commented Dec 4, 2018

@JensNordenbro what's your error? I don't have access to a Windows machine anymore, but might be able to help. For more general questions on how to get LCOW to work with docker, moby/moby is a better repository to ask questions.

@JensNordenbro
Copy link

basically my machine says "no matching manifest for windows/amd64 in the manifest list entries."

I will try the experimental modes on another machine, but I find the whole information on LCOW support to be very confusing…

@rn
Copy link
Member

rn commented Dec 5, 2018

When most of the initial instructions were written, LCOW was still very much under heavy development and having it behind --experimental means that the way users use it may change. I haven't followed the LCOW development for about 6 months and am not up to speed how it is now integrated with docker. You are probably better off asking on https://github.com/moby/moby what the current recommended way is.

@JensNordenbro
Copy link

@riezebosch ; I ran your gist-script and it worked until executing the Utility VM saying: Error response from daemon: failed to start service utility VM (createreadwrite): kernel 'C:\Program Files\Linux Containers\kernel' not found.

@rn
Copy link
Member

rn commented Dec 5, 2018

@JensNordenbro have you copied the kernel and initrd there as suggested in the README.md from the line "Next, you need to get the LinuxKit images..." onwards?

@JensNordenbro
Copy link

yes, I think so since I have

  • bootx63.efi
  • initrd
  • versions
    under "c:\Program Files\Linux Containers"

@lahma
Copy link

lahma commented Dec 5, 2018

@JensNordenbro if you open the latest zip from https://github.com/linuxkit/lcow/releases/tag/v4.14.35-v0.3.9 you should see that there is a file named kernel. The naming changed recently. I suppose you have older release in use.

@JensNordenbro
Copy link

JensNordenbro commented Dec 5, 2018

Now it works. Thanks @lahma, @rn!

So my conclusions are:

  1. In order to enable LCOW a manual install is necessary.
  2. This is not supported by Microsoft since it is --experimental

And since I am fetching docker(d).exe from master builds; It is not supported by Docker also?!

Am I right?!

@rn
Copy link
Member

rn commented Dec 5, 2018

@JensNordenbro I can't answer the question of which version of docker(d) or Windows supports LCOW to what degree as I work for neither Docker nor Microsoft. It's probably a good question to ask initially on https://github.com/moby/moby which is where both Docker and Microsoft developing the upstream support are hanging out.

Closing this issue.

@rn rn closed this as completed Dec 5, 2018
@JensNordenbro
Copy link

So as a final question @rn, when are you planning to make a Release branch out of your master branch the next time?

@rn
Copy link
Member

rn commented Dec 5, 2018

I made release two weeks ago (or so). Not planning to make one soon, unless there are more changes to OpenGCS, which is the main component running in the VM

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

No branches or pull requests

5 participants