Skip to content

Commit

Permalink
Don't set container name to node hostname
Browse files Browse the repository at this point in the history
This prevents running beaker concurrently with other beaker nodesets
containing nodes with the same hostname.
  • Loading branch information
jovrum committed Sep 28, 2017
1 parent 2458a36 commit dcb70a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/beaker/hypervisor/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def provision
container_opts = {
'Image' => image_name,
'Hostname' => host.name,
'name' => host.name,
'HostConfig' => {
'PortBindings' => {
'22/tcp' => [{ 'HostPort' => rand.to_s[2..5], 'HostIp' => '0.0.0.0'}]
Expand Down
3 changes: 0 additions & 3 deletions spec/beaker/hypervisor/docker_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ module Beaker
expect( ::Docker::Container ).to receive(:create).with({
'Image' => image.id,
'Hostname' => host.name,
'name' => host.name,
'HostConfig' => {
'PortBindings' => {
'22/tcp' => [{ 'HostPort' => /\b\d{4}\b/, 'HostIp' => '0.0.0.0'}]
Expand Down Expand Up @@ -211,7 +210,6 @@ module Beaker
expect( ::Docker::Container ).to receive(:create).with({
'Image' => image.id,
'Hostname' => host.name,
'name' => host.name,
'HostConfig' => {
'PortBindings' => {
'22/tcp' => [{ 'HostPort' => /\b\d{4}\b/, 'HostIp' => '0.0.0.0'}]
Expand Down Expand Up @@ -284,7 +282,6 @@ module Beaker
expect( ::Docker::Container ).to receive(:create).with({
'Image' => image.id,
'Hostname' => host.name,
'name' => host.name,
'HostConfig' => {
'Binds' => [
'/source_folder:/mount_point',
Expand Down

0 comments on commit dcb70a2

Please sign in to comment.