Using Docker for local development replacing Vagrant

I know there are a ton of hits on this topic, and I have spend some time looking at them, but just can not make a good decision.

I work on a Windows machine, and use Vagrant for development. I start my server, edit my files in the mounted /vagrant directory, hit F5 and see my changes. When I am done developing I upload the code to my server.

  • How do I run 2 environments of SkyDns/Skydock simultaneously?
  • Can docker containers share a directory amongst them
  • PostgreSQL docker container on Widnows
  • How do I capture the console output for a container launched on ECS?
  • sha256 of locally built docker image
  • SSH server does not accept connections
  • Problem is, I want to have the infrastructure of my server in “code” so a solution is docker with docker-compose. Now I do not know if there is a way to work with this like I work with Vagrant. It seems that I have to keep rebuilding my containers for for the changes to apply.

    I don’t know if I am doing something wrong, or is Docker really a product to use with ready to go code.

  • Passing in environment variables into docker file that is build via a compose yaml
  • What should WSO2 APIM <localMemberHost> parameter contain in the config and what it is used by the APIM?
  • Cannot stop or restart a docker container
  • make new docker container after it has been deleted
  • How can i keep crontab in file in ubuntu docker
  • how to map a local folder as the volume the docker container or image?
  • One Solution collect form web for “Using Docker for local development replacing Vagrant”

    I want to have the infrastructure of my server in “code” so a solution is docker with docker-compose.
    It seems that I have to keep rebuilding my containers for for the changes to apply.

    As long as your docker-compose is mounting the host folder where your code is, you wouldn’t need to rebuild your container “for the changes to apply”: that container would see any code changes immediately, without having to restart it.

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