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?

  • Cleanup disk space occupied by Docker images
  • Network connectivity for docker containers on Ubuntu VM
  • google/cadvisor:latest image monitor container run error
  • What's a sane way to define custom travis job?
  • Running windows containers and linux with the same docker client [closed]
  • Vagrant docker shellinit?
  • This was available using vagrant so I’m just wondering is there an effective and easy solution to this problem?

  • Why Kafka broker connects to itself?
  • Multiple docker images from SBT
  • Dockerfile can not find entrypoint script
  • setting up local drone server: Unable to login. Registration is closed
  • docker-compose v2 named volumes and volumes on host
  • internal infrastructure with docker
  • 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.