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?

  • How can I run multiple docker nodes on my laptop to simulate a cluster?
  • Docker-machine host env on multiple computers?
  • Using remote byebug instance with docker-compose
  • MariaDB never starts within docker image
  • (mac) dockers , how to connect to a redis server in the hosting machine from a containter
  • How to retrain image on Windows
  • This was available using vagrant so I’m just wondering is there an effective and easy solution to this problem?

  • Simple HTTP proxy / routing for my docker containers?
  • Pass login parameters to scan with owasp zap on docker command
  • Issue when trying to write to a mounted volume from inside a container as a non-root user
  • Giving a Docker container configuration access to a device
  • Understanding vagrant with a docker provisioner
  • What is the proper command to restart a Dokku app from SSH?
  • 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.