Skip to content

Commit

Permalink
* Start docker containers using privileged mode, fixes voxpupuli#305
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey Dockendorf committed Jun 17, 2014
1 parent 145e26b commit 4b10274
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/beaker/hypervisor/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def provision
})

@logger.debug("Starting container #{container.id}")
container.start({"PublishAllPorts" => true})
container.start({"PublishAllPorts" => true, "Privileged" => true})

# Find out where the ssh port is from the container
ip = container.json["NetworkSettings"]["Ports"]["22/tcp"][0]["HostIp"]
Expand Down
2 changes: 1 addition & 1 deletion spec/beaker/hypervisor/docker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ module Beaker
end

it 'should start the container' do
container.should_receive(:start).with({'PublishAllPorts' => true})
container.should_receive(:start).with({'PublishAllPorts' => true, 'Privileged' => true})

docker.provision
end
Expand Down

0 comments on commit 4b10274

Please sign in to comment.