LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 11-25-2015, 03:21 PM   #1
gubak
Member
 
Registered: Jul 2004
Posts: 332

Rep: Reputation: 30
Docker: mounting problems


Hi everyone,

I am new in docker technology and I have some issue according to sharing Host OS folders to container. What I want to create is a php-apache-mysql development environment on Windows 10 OS.

What I did so far is: Installed Docker 1.9 (Windows 10 host OS, VirtualBox) and started PHP-APACHE container (Debian 8). The php-apache environment was setted properly, what I want is to mount the webpage source code files and folders (c:/workspace/www) to the container's /var/www/html mountpoint. I did it with : “docker run -v //c:/workspace/www:/var/www/html ...”, but when I log in to the container and check the /var/www/html, it is empty (actually c:/workspace/www is full of files and folders). I thought that the mount process failed, so I made some tests and mounted another windows directory (c:/users) with command: “docker run -v //c:/users:/var/www/html ...”. This time everything was ok (the /var/www/html contained all the directories what c:/users contains.)

Do you have any idea how to solve this?

Thanks
 
Old 11-26-2015, 07:53 AM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Code:
docker run -v /inside_the_containter:/path/you/want/to/mount -i -t imagename
See http://docs.docker.com/engine/userguide/dockervolumes/

Have Fun!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Docker Engine 1.6 Debuts Alongside Docker Registry 2.0 and Compose 1.2.0 LXer Syndicated Linux News 0 04-17-2015 09:02 PM
LXer: Red Hat partners with Docker to create Linux/Docker software stack LXer Syndicated Linux News 0 03-12-2015 05:54 PM
LXer: Ubuntu LXD: Not a Docker replacement, a Docker enhancement LXer Syndicated Linux News 0 11-05-2014 08:40 PM
LXer: Docker Founder Explains What Docker is all About LXer Syndicated Linux News 0 08-21-2014 09:20 PM
Mounting Problems! Chalky723 Linux - Newbie 4 10-27-2001 10:44 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 09:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration