Docker – Local Development on container

Getting started with Docker and I wanted to know the following:

I want to develop a Laravel application, all of the files are located on my local machine. However, I cannot seem to figure out how I am able to synchronise the files on my local machine to the server itself?

  • Not able to connect with host interface service inside docker container
  • Mounting windows drives to access from docker
  • Nginx backend to one of 4 hosts in Docker Swarm
  • Mount specific EBS volume to Docker under AWS beanstalk
  • Restart Postgres in a docker
  • How to achieve cpu-throttling in docker swarm mode: docker service create
  • This was available using vagrant so I’m just wondering is there an effective and easy solution to this problem?

  • Image successfully builds but won't push due to auth credentials
  • How to configure Vagrant box filesystem?
  • Moving Docker Containers Around
  • How can i run a script before destroy a docker container?
  • side effect of --rm: when exit a container build with docker run --rm -v /myvol, also the volume is removed
  • Trouble setting up LDAPS for login in Sonarqube Docker container
  • One Solution collect form web for “Docker – Local Development on container”

    Have a look at:
    Probably you have to do something like:

    $ docker run -d --name mycontainer -v /home/user/Sites/mysite:/var/www/mysite my/image

    This way you mount the host folder to you container folder. This means that the folder on your host will be visible from your container. These two folders are the same folder physically!

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