What's the right way to set up a development environment on OS X with Docker?

后端 未结 10 1371
野性不改
野性不改 2020-12-04 05:39

Intro

I can\'t figure out a good way to set up a development environment on OS X using Docker and Boot2Docker. The problem I\'m hitting is how to manage the source

10条回答
  •  星月不相逢
    2020-12-04 06:08

    I'm also using Vagrant with parallels and boot2docker (https://github.com/Parallels/boot2docker-vagrant-box). Development was never easier for me. Works really well with docker-compose and large setups. I don't really feel a delay or massive resource consumption.

    This is what my Vagrantfile looks like:

    Vagrant.configure(2) do |config|
    
      config.vm.network "private_network", ip: "192.168.33.10"
      config.vm.box = "parallels/boot2docker"
    
      config.vm.synced_folder "/Users", "/Users", type: "nfs", mount_options: ["nolock", "vers=3", "udp"], id: "nfs-sync"
    
    end
    

提交回复
热议问题