Advertisement
Guest User

stuff

a guest
Apr 25th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. - - - - - -
  2. Dockerfile
  3. - - - - - -
  4.  
  5. From ruby:1.9.3
  6. Run apt-get update -qq && apt-get install -y build-essential libpq-dev
  7.  
  8.  
  9. - - - - - -
  10. Vagrantfile
  11. - - - - - -
  12.  
  13. # -*- mode: ruby -*-
  14. # vi: set ft=ruby :
  15.  
  16. Vagrant.configure("2") do |config|
  17. config.vm.provider "docker" do |d|
  18. d.build_dir = "."
  19. end
  20. end
  21.  
  22.  
  23. - - - - - - - -
  24. Command output
  25. - - - - - - - -
  26.  
  27. $ vagrant up --provider=docker
  28. Bringing machine 'default' up with 'docker' provider...
  29. ==> default: Docker host is required. One will be created if necessary...
  30. default: Vagrant will now create or start a local VM to act as the Docker
  31. default: host. You'll see the output of the `vagrant up` for this VM below.
  32. default:
  33. default: Importing base box 'mitchellh/boot2docker'...
  34. default: Matching MAC address for NAT networking...
  35. default: Checking if box 'mitchellh/boot2docker' is up to date...
  36. default: Setting the name of the VM: docker-host_default_1429953276629_67958
  37. default: Clearing any previously set network interfaces...
  38. default: Preparing network interfaces based on configuration...
  39. default: Adapter 1: nat
  40. default: Forwarding ports...
  41. default: 2375 => 2375 (adapter 1)
  42. default: 22 => 2222 (adapter 1)
  43. default: Running 'pre-boot' VM customizations...
  44. default: Booting VM...
  45. default: Waiting for machine to boot. This may take a few minutes...
  46. default: SSH address: 127.0.0.1:2222
  47. default: SSH username: docker
  48. default: SSH auth method: private key
  49. default: Warning: Connection timeout. Retrying...
  50. default: Warning: Connection timeout. Retrying...
  51. default: Machine booted and ready!
  52. ==> default: Syncing folders to the host VM...
  53. default: Installing rsync to the VM...
  54. default: Rsyncing folder: /Users/iltomee/Documents/Work/Enliken/test/ => /var/lib/docker/docker_1429953315_85529
  55. default: Rsyncing folder: /Users/iltomee/Documents/Work/Enliken/test/ => /mnt/docker_build_2db51ba3b99511a6e6e25ed28523cbc2
  56. ==> default: Building the container from a Dockerfile...
  57. default: Image: 11d199271d4c
  58. ==> default: Warning: When using a remote Docker host, forwarded ports will NOT be
  59. ==> default: immediately available on your machine. They will still be forwarded on
  60. ==> default: the remote machine, however, so if you have a way to access the remote
  61. ==> default: machine, then you should be able to access those ports there. This is
  62. ==> default: not an error, it is only an informational message.
  63. ==> default: Creating the container...
  64. default: Name: test_default_1429953715
  65. default: Image: 11d199271d4c
  66. default: Volume: /var/lib/docker/docker_1429953315_85529:/vagrant
  67. default:
  68. default: Container created: 7e593c667df0b4fd
  69. ==> default: Waiting for container to enter "running" state...
  70. The container started either never left the "stopped" state or
  71. very quickly reverted to the "stopped" state. This is usually
  72. because the container didn't execute a command that kept it running,
  73. and usually indicates a misconfiguration.
  74.  
  75. If you meant for this container to not remain running, please
  76. set the Docker provider configuration "remains_running" to "false":
  77.  
  78. config.vm.provider "docker" do |d|
  79. d.remains_running = false
  80. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement