Advertisement
Guest User

Untitled

a guest
May 29th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Vagrant.configure(2) do |config|
  2. config.vm.box = "coreos-alpha"
  3. config.vm.network "forwarded_port", guest: 2375, host: 2375
  4.  
  5. config.vm.provision "shell", inline: "
  6. cat > /etc/systemd/system/docker-tcp.socket <<FILE
  7. [Unit]
  8. Description=Docker Socket for the API
  9.  
  10. [Socket]
  11. ListenStream=2375
  12. BindIPv6Only=both
  13. Service=docker.service
  14.  
  15. [Install]
  16. WantedBy=sockets.target
  17. FILE
  18.  
  19. systemctl enable docker-tcp.socket
  20. systemctl stop docker
  21. systemctl start docker-tcp.socket
  22. systemctl start docker
  23. "
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement