Skip to content

Instantly share code, notes, and snippets.

@jubel-han
Last active January 8, 2017 16:53
Show Gist options
  • Save jubel-han/3e68d8861997aeea6646df4ec3f3dd38 to your computer and use it in GitHub Desktop.
Save jubel-han/3e68d8861997aeea6646df4ec3f3dd38 to your computer and use it in GitHub Desktop.
This is a alternative solution with start the docker socks on MacOS for Jetbrains docker integrate "Docker for Mac".
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.provider "docker" do |d|
d.vagrant_machine = 'docker-socks'
d.force_host_vm = false
d.has_ssh = false
d.image = "bobrik/socat"
d.name = 'docker-socks'
d.ports = ['127.0.0.1:2376:2375']
d.volumes = ['/var/run/docker.sock:/var/run/docker.sock']
d.cmd = ['TCP4-LISTEN:2375,fork,reuseaddr', 'UNIX-CONNECT:/var/run/docker.sock']
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment