Docker run with “-v” create another shared directory

I have a strange problem running a Docker container
It is working OK if I run:

docker run -it -v /home/drleo/pythonCourses:/home/pythonCurses /redpmorg/python-courses

But if I run container with publish option the Docker will create a new folder in my /home/drleo directory with the SAME name: pythonCourses, owned by root but obviously empty:

  • What is the purpose of putting WordPress in a Docker container [closed]
  • Docker with hypervisor
  • SSL handshake failure with node.js https
  • WordPress NGINX conf routes back to Landing Page
  • Downloading all jupyter notebooks
  • Anonymous pull on docker repo in artifactory
  •  docker run -it -p 127.0.0.1:8080:8080 -v /home/drleo/pythonCourses:/home/pythonCurses /redpmorg/python-courses
    
    -rw-r--r--   1 drleo drleo   675 May  6  2016 .profile
    drwxr-xr-x   2 drleo drleo  4096 May  6  2016 Public
    drwxr-xr-x   2 root  root   4096 Feb 16 13:08 pyhtonCourses
    drwxrwxr-x   2 drleo drleo  4096 Feb 16 13:08 pythonCourses
    -rwxrwxr-x   1 drleo drleo    71 Jan 20 22:35 reset-network
    

    The question is why? Thanks!

  • Connection refused with kubectl on EC2 ubuntu instance?
  • How to share static data among different containers or can we share the cache'd data among containers?
  • Access running docker container filesystem
  • Connecting php docker to mqtt docker
  • Using env vars in a docker cmd?
  • What is the overhead of using docker on windows, since I still have to download virtualbox
  • One Solution collect form web for “Docker run with “-v” create another shared directory”

    You seem to have a type somewhere. python != pyhton.

    Double check your command history.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.