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

174
Visualizações
Docker volume access from host

I have a docker file that looks like this. How can I access this volume from the host? I checked the volumes folder where Docker is installed.

FROM busybox

MAINTAINER Erik Kaareng-sunde <esu@enonic.com>

RUN mkdir -p /enonic-xp/home
RUN adduser -h /enonic-xp/ -H -u 1337 -D -s /bin/sh enonic-xp
RUN chown -R enonic-xp /enonic-xp/
VOLUME /enonic-xp/home
ADD logo.txt /logo.txt
CMD cat /logo.txt

ls

$ docker volume ls
DRIVER              VOLUME NAME
local               b4e99290fd4d5f7a3fe700ae9b616c2e66b1f758c497662415cdb47905427719

I would like to be able to cd into that volume.

inspect
docker volume inspect b4e99290fd4d5f7a3fe700ae9b616c2e66b1f758c497662415cdb47905427719
[
    {
        "Driver": "local",
        "Labels": null,
        "Mountpoint": "/var/lib/docker/volumes/b4e99290fd4d5f7a3fe700ae9b616c2e66b1f758c497662415cdb47905427719/_data",
        "Name": "b4e99290fd4d5f7a3fe700ae9b616c2e66b1f758c497662415cdb47905427719",
        "Options": {},
        "Scope": "local"
    }
]
about 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

After looking at a lot of posts, I finally found a post that address the question asked here.

Getting path and accessing persistent volumes in Docker for Mac

Note: this works only for Mac.

The path for the tty may also be present here:

~/Library/Containers/com.docker.docker/Data/vm/*/tty

about 4 years ago · Santiago Trujillo Relatório

0

Docker volume ls lists all volumes docker volume inspect lets you inspect a volume. If you cant find your volume with docker volume ls try docker inspect your container and check for info there

about 4 years ago · Santiago Trujillo Relatório

0

Instead of doing it within the dockerfile, you can simply mount with docker run -v /path/in/host:/path/in/container image-name....

about 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