Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

203
Views
Can I share docker images between windows and linux?

this might seems a stupid question, but here I am : I'm running Ubuntu 16.04 and managed to install windows 10 in dual boot. Running docker exclusively in linux so far, I decided to give it a try on Windows 10.

As I already downloaded several docker images on my Linux system, I'm willing to have a "shared" like development environment. I must admit this would be a waste of time and disk space to download Docker images I already downloaded before (on linux) on my fresh windows install.

So my question is simple : Can I use my linux images / containers on windows. I'm thinking of something like a global path variable pointing to my linux images to configure on docker windows.

Any idea if this is possible, and if yes, the pros and cons and the caveats ? Thanks for helping me on this one.

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Well i would suggest to create your local registry and then push these images there and pull it in your windows docker.

Sonatype nexus(artifact storage repository) can be used to store your docker images. Check if this helps.

about 4 years ago · Santiago Trujillo Report

0

I guess it's not possible to share the same folder (to reduce disk usage) since the stored files are totally different:

Under Windows the file is:

  • C:\Users\Public\Documents\Hyper-V\Virtual hard disks \MobyLinuxVM.vhdx

the vhdx extension is specific to MS systems.

and under linux it consist of 2 files:

  • /var/lib/docker/devicemapper/devicemapper/data
  • /var/lib/docker/devicemapper/devicemapper/metadata

see here for details Where are Docker images stored on the host machine?

The technology under this is to have a specific fileSystem optimal for docker. Even if they used the same fileSystem storage, it wouldn't be a good idea imho.

If the purpose is only to gain time for resintalling, just dump all the images from on system, and re-pull them on the other one.

docker images --format "{{.Repository}}" > image-list.txt

then loop on the other OS

 while read p; do
  docker pull $p
 done < image-listtxt
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!