Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

214
Visualizações
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.

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

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.

over 4 years ago · Santiago Trujillo Relatório

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
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda