Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - - - - - -
- Dockerfile
- - - - - - -
- From ruby:1.9.3
- Run apt-get update -qq && apt-get install -y build-essential libpq-dev
- - - - - - -
- Vagrantfile
- - - - - - -
- # -*- mode: ruby -*-
- # vi: set ft=ruby :
- Vagrant.configure("2") do |config|
- config.vm.provider "docker" do |d|
- d.build_dir = "."
- end
- end
- - - - - - - - -
- Command output
- - - - - - - - -
- $ vagrant up --provider=docker
- Bringing machine 'default' up with 'docker' provider...
- ==> default: Docker host is required. One will be created if necessary...
- default: Vagrant will now create or start a local VM to act as the Docker
- default: host. You'll see the output of the `vagrant up` for this VM below.
- default:
- default: Importing base box 'mitchellh/boot2docker'...
- default: Matching MAC address for NAT networking...
- default: Checking if box 'mitchellh/boot2docker' is up to date...
- default: Setting the name of the VM: docker-host_default_1429953276629_67958
- default: Clearing any previously set network interfaces...
- default: Preparing network interfaces based on configuration...
- default: Adapter 1: nat
- default: Forwarding ports...
- default: 2375 => 2375 (adapter 1)
- default: 22 => 2222 (adapter 1)
- default: Running 'pre-boot' VM customizations...
- default: Booting VM...
- default: Waiting for machine to boot. This may take a few minutes...
- default: SSH address: 127.0.0.1:2222
- default: SSH username: docker
- default: SSH auth method: private key
- default: Warning: Connection timeout. Retrying...
- default: Warning: Connection timeout. Retrying...
- default: Machine booted and ready!
- ==> default: Syncing folders to the host VM...
- default: Installing rsync to the VM...
- default: Rsyncing folder: /Users/iltomee/Documents/Work/Enliken/test/ => /var/lib/docker/docker_1429953315_85529
- default: Rsyncing folder: /Users/iltomee/Documents/Work/Enliken/test/ => /mnt/docker_build_2db51ba3b99511a6e6e25ed28523cbc2
- ==> default: Building the container from a Dockerfile...
- default: Image: 11d199271d4c
- ==> default: Warning: When using a remote Docker host, forwarded ports will NOT be
- ==> default: immediately available on your machine. They will still be forwarded on
- ==> default: the remote machine, however, so if you have a way to access the remote
- ==> default: machine, then you should be able to access those ports there. This is
- ==> default: not an error, it is only an informational message.
- ==> default: Creating the container...
- default: Name: test_default_1429953715
- default: Image: 11d199271d4c
- default: Volume: /var/lib/docker/docker_1429953315_85529:/vagrant
- default:
- default: Container created: 7e593c667df0b4fd
- ==> default: Waiting for container to enter "running" state...
- The container started either never left the "stopped" state or
- very quickly reverted to the "stopped" state. This is usually
- because the container didn't execute a command that kept it running,
- and usually indicates a misconfiguration.
- If you meant for this container to not remain running, please
- set the Docker provider configuration "remains_running" to "false":
- config.vm.provider "docker" do |d|
- d.remains_running = false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement