Advertisement
Guest User

Untitled

a guest
Apr 30th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.27 KB | None | 0 0
  1. Vagrant 1.8.1
  2. hashicorp/boot2docker (virtualbox, 1.7.8)
  3. ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin15]
  4.  
  5. # -*- mode: ruby -*-
  6. # vi: set ft=ruby :
  7.  
  8. VAGRANTFILE_API_VERSION = "2"
  9.  
  10. Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  11.  
  12.  
  13. config.vm.define 'app' do |app|
  14. app.vm.provider "docker" do |d|
  15. app.vm.synced_folder ".", "/vagrant", disabled: true
  16. app.vm.provision "file", source: "~/.docker/config.json", destination: "~/.docker/config.json"
  17. app.vm.provision "shell", inline: "sudo cp -R /home/vagrant/.docker /root/.docker"
  18. app.vm.provision "shell", inline: "echo Hello"
  19. d.build_dir = "."
  20. d.remains_running = false
  21. end
  22. end
  23.  
  24. end
  25.  
  26. Bringing machine 'app' up with 'docker' provider...
  27. ==> app: Docker host is required. One will be created if necessary...
  28. app: Vagrant will now create or start a local VM to act as the Docker
  29. app: host. You'll see the output of the `vagrant up` for this VM below.
  30. app:
  31. default: Box 'hashicorp/boot2docker' could not be found. Attempting to find and install...
  32. default: Box Provider: virtualbox
  33. default: Box Version: >= 0
  34. default: Loading metadata for box 'hashicorp/boot2docker'
  35. default: URL: https://atlas.hashicorp.com/hashicorp/boot2docker
  36. default: Adding box 'hashicorp/boot2docker' (v1.7.8) for provider: virtualbox
  37. default: Downloading: https://atlas.hashicorp.com/hashicorp/boxes/boot2docker/versions/1.7.8/providers/virtualbox.box
  38. default: Successfully added box 'hashicorp/boot2docker' (v1.7.8) for 'virtualbox'!
  39. default: Importing base box 'hashicorp/boot2docker'...
  40. default: Matching MAC address for NAT networking...
  41. default: Checking if box 'hashicorp/boot2docker' is up to date...
  42. default: Setting the name of the VM: docker-host_default_1455753187095_3647
  43. default: Fixed port collision for 2375 => 2375. Now on port 2204.
  44. default: Fixed port collision for 22 => 2222. Now on port 2205.
  45. default: Clearing any previously set network interfaces...
  46. default: Preparing network interfaces based on configuration...
  47. default: Adapter 1: nat
  48. default: Forwarding ports...
  49. default: 2375 (guest) => 2204 (host) (adapter 1)
  50. default: 22 (guest) => 2205 (host) (adapter 1)
  51. default: Running 'pre-boot' VM customizations...
  52. default: Booting VM...
  53. default: Waiting for machine to boot. This may take a few minutes...
  54. default: SSH address: 127.0.0.1:2205
  55. default: SSH username: docker
  56. default: SSH auth method: password
  57. default: Machine booted and ready!
  58. ==> app: Syncing folders to the host VM...
  59. default: Installing rsync to the VM...
  60. default: The machine you're rsyncing folders to is configured to use
  61. default: password-based authentication. Vagrant can't script rsync to automatically
  62. default: enter this password, so you'll likely be prompted for a password
  63. default: shortly.
  64. default:
  65. default: If you don't want to have to do this, please enable automatic
  66. default: key insertion using `config.ssh.insert_key`.
  67. default: Rsyncing folder: /Users/xx/Projects/proj/ => /var/lib/docker/docker_build_930d43a6c182bc70b5cb41a97523c5c6
  68. docker@127.0.0.1's password:
  69. ==> app: Building the container from a Dockerfile...
  70. app: Sending build context to Docker daemon 557.1 kB
  71. app: Sending build context to Docker daemon 1.114 MB
  72. app: Sending build context to Docker daemon 1.671 MB
  73. app: Sending build context to Docker daemon 2.228 MB
  74. app: Sending build context to Docker daemon 2.785 MB
  75. app: Sending build context to Docker daemon 3.342 MB
  76. app: Sending build context to Docker daemon 3.899 MB
  77. app: Sending build context to Docker daemon 4.456 MB
  78. app: Sending build context to Docker daemon 5.014 MB
  79. app: Sending build context to Docker daemon 5.571 MB
  80. app: Sending build context to Docker daemon 6.128 MB
  81. app: Sending build context to Docker daemon 6.685 MB
  82. app: Sending build context to Docker daemon 7.242 MB
  83. app: Sending build context to Docker daemon 7.799 MB
  84. app: Sending build context to Docker daemon 8.356 MB
  85. app: Sending build context to Docker daemon 8.913 MB
  86. app: Sending build context to Docker daemon 9.47 MB
  87. app: Sending build context to Docker daemon 10.03 MB
  88. app: Sending build context to Docker daemon 10.58 MB
  89. app: Sending build context to Docker daemon 11.14 MB
  90. app: Sending build context to Docker daemon 11.7 MB
  91. app: Sending build context to Docker daemon 12.26 MB
  92. app: Sending build context to Docker daemon 12.81 MB
  93. app: Sending build context to Docker daemon 13.37 MB
  94. app: Sending build context to Docker daemon 13.93 MB
  95. app: Sending build context to Docker daemon 14.48 MB
  96. app: Sending build context to Docker daemon 15.04 MB
  97. app: Sending build context to Docker daemon 15.6 MB
  98. app: Sending build context to Docker daemon 16.15 MB
  99. app: Sending build context to Docker daemon 16.71 MB
  100. app: Sending build context to Docker daemon 17.27 MB
  101. app: Sending build context to Docker daemon 17.83 MB
  102. app: Sending build context to Docker daemon 18.38 MB
  103. app: Sending build context to Docker daemon 18.94 MB
  104. app: Sending build context to Docker daemon 19.5 MB
  105. app: Sending build context to Docker daemon 20.05 MB
  106. app: Sending build context to Docker daemon 20.61 MB
  107. app: Sending build context to Docker daemon 21.17 MB
  108. app: Sending build context to Docker daemon 21.73 MB
  109. app: Sending build context to Docker daemon 22.28 MB
  110. app: Sending build context to Docker daemon 22.84 MB
  111. app: Sending build context to Docker daemon 23.4 MB
  112. app: Sending build context to Docker daemon 23.95 MB
  113. app: Sending build context to Docker daemon 24.51 MB
  114. app: Sending build context to Docker daemon 25.07 MB
  115. app: Sending build context to Docker daemon 25.62 MB
  116. app: Sending build context to Docker daemon 26.18 MB
  117. app: Sending build context to Docker daemon 26.74 MB
  118. app: Sending build context to Docker daemon 27.3 MB
  119. app: Sending build context to Docker daemon 27.85 MB
  120. app: Sending build context to Docker daemon 28.18 MB
  121. app: Sending build context to Docker daemon
  122. app: Step 0 : FROM id.dkr.ecr.us-east-1.amazonaws.com/image:latest
  123. app: Pulling repository id.dkr.ecr.us-east-1.amazonaws.com/image
  124. app: Authentication is required.
  125. A Docker command executed by Vagrant didn't complete successfully!
  126. The command run along with the output from the command is shown
  127. below.
  128.  
  129. Command: "docker" "build" "/var/lib/docker/docker_build_930d43a6c182bc70b5cb41a97523c5c6"
  130.  
  131. Stderr: Authentication is required.
  132.  
  133. Sending build context to Docker daemon 28.18 MB557.1 kB
  134. Sending build context to Docker daemon
  135. Step 0 : FROM id.dkr.ecr.us-east-1.amazonaws.com/image:latest
  136. Pulling repository id.dkr.ecr.us-east-1.amazonaws.com/image
  137.  
  138. Vagrant.configure(2) do |config|
  139. config.vm.box = "ubuntu/trusty64"
  140.  
  141. # Shared folders
  142. config.vm.synced_folder "./", "/vagrant", type: "smb"
  143.  
  144. config.vm.provision "docker"
  145.  
  146. config.vm.provision "shell", inline: "docker login --username='user' --password='pass' my-private-registry"
  147.  
  148. config.vm.provision "docker" do |d|
  149. d.pull_images "my-private-registry-image"
  150. end
  151. end
  152.  
  153. config.vm.synced_folder "./", "/vagrant", type: "rsync", username: "user", password: "pass"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement