Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vagrant.configure(2) do |config|
- config.vm.box = "coreos-alpha"
- config.vm.network "forwarded_port", guest: 2375, host: 2375
- config.vm.provision "shell", inline: "
- cat > /etc/systemd/system/docker-tcp.socket <<FILE
- [Unit]
- Description=Docker Socket for the API
- [Socket]
- ListenStream=2375
- BindIPv6Only=both
- Service=docker.service
- [Install]
- WantedBy=sockets.target
- FILE
- systemctl enable docker-tcp.socket
- systemctl stop docker
- systemctl start docker-tcp.socket
- systemctl start docker
- "
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement