How to run Linux libraries on Docker on Windows? -


i working on windows , need use libraries, availible linux (tensorflow,caffe). run software on docker. cannot understand docker mechanism clearly, completly lost, when problem. should , how should work?

edit:

about windows docker hosting capabilities (container on windows host):

  • windows 10 offers docker host capabilities, based on hyper-v, i.e. means of linux-like vms.
  • windows 2016 offers native docker host capabilities (thanks @friism point out below).

about windows docker container capabilities (windows in container):

  • windocks offers .net , sql server support within containers (thanks @paul).
  • on windows 2016, windowsservercore base docker image allows run windows services, see simple example.
  • on windows 10 & hyper-v, nanoserver base docker image allows run windows commands (see here helloworld powershell example). requires windows version of docker daemon , not work on linux docker hosts, see here.

original answer:

bad news first: docker not (not correct, see edit above) supported on windows hosts natively (okay, depends on how define "natively". mean, docker needs linux-like docker host, see news below).

the news docker can used on windows running docker containers on docker host, running virtual linux machine on windows e.g. on virtualbox, vmware or, nowadays officially preferred on windows 10 professional: on hyper-v.

the best news is: since docker containers running on linux-like hosts , offering linux environment within container, can install linux software within container same way on native linux machine. say, start docker container interactive terminal ubuntu docker image, issuing command

docker run -it ubuntu bash 

you can run apt-get command in container.

note, data have changed in container not meant persistent. once have installed sw in container, may want preserve work building new docker image new container using docker commit commands. advanced , automated way create such images add tested installation commands run directives in dockerfile , build image without need manually run interactive container , manually add software.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -