简体   繁体   中英

View files in docker container

I created a docker container. I can ssh into the docker container. How can I view files in my docker container with a GUI (specifically the WebStorm IDE)?

I'm running a MAC on OSX Yosemite 10.10.5.

The usual pattern is to mount your source code into the container as a volume. Your IDE can work with the files on your host machine and the processes running in the container can see the files. docs

There might be a way to set up remote file access with WebStorm, but I'd recommend trying the other approach first.

docker run daemon -v /mycodedir:/mydockerdir {libraryname}/{imagename}如果您挂载工作目录并将其映射到容器中运行文件的目录,则可以在Web Storm中进行编辑并查看它们。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM