---
title: "Docker : Accès aux volumes sous Windows"
url: https://www.cyber-neurones.org/2020/10/docker-acces-aux-volumes-sous-windows/
date: 2020-10-30
modified: 2020-10-30
author: "Frederic"
description: "C'est simplement l'enfer sous Windows :) Si par exemple on fait un volume : docker volume create -name mes-datas Ensuite pour avoir accès : $ docker run --privileged -it -v..."
categories:
  - "Docker"
tags:
  - "Docker"
  - "Windows"
word_count: 73
---

# Docker : Accès aux volumes sous Windows

C'est simplement l'enfer sous Windows :)

Si par exemple on fait un volume :
**docker volume create -name mes-datas**

Ensuite pour avoir accès :
$ **docker run** --privileged -it -v /var/run/docker.sock:/var/run/docker.sock jongallant/ubuntu-docker-client
$ **docker run** --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine /bin/sh
$ chroot /host
$ cd /var/lib/docker/volumes/**mes-datas**/_data/

Ensuite pour sortir:
$ exit
$ exit
$ exit

J'utilise donc ce conteneur : [https://hub.docker.com/r/jongallant/ubuntu-docker-client](https://hub.docker.com/r/jongallant/ubuntu-docker-client) .

Misère de misère.

 