Vagrant: Version tag docker provision bug

Created on 31 Jan 2018  ยท  4Comments  ยท  Source: hashicorp/vagrant

Vagrant version

Vagrant 1.9.2

Host operating system

Windows 10

Guest operating system

Ubuntu 16

Expected behavior

tag --name should replace ':' with something else

Actual behavior

It's creating a bug when we run docker.run "rabbitmq:3.6.12" because : is not allowed for --name

docker: Error response from daemon: Invalid container name (rabbitmq:3.6.12), only [a-zA-Z0-9][a-zA-Z0-9_.-] are allowed.

Currently, to solve this I should set auto_assign_name to false

bug provisionedocker

Most helpful comment

Thanks @imam !

All 4 comments

Please provide the relevant minimum Vagrantfile so that we can try to reproduce your bug. Thanks!

  config.vm.provision "mongodb_start", run: "always", type: "docker" do |d|
    d.run "mongo:3.5.13", 
      args: "-p 27020:27017",
      #auto_assign_name: false (Uncomment this would be my current setting to make it work)
  end

That should be it :)

Thanks @imam !

I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

luispabon picture luispabon  ยท  3Comments

bbaassssiiee picture bbaassssiiee  ยท  3Comments

lebogan picture lebogan  ยท  3Comments

gwagner picture gwagner  ยท  3Comments

DreadPirateShawn picture DreadPirateShawn  ยท  3Comments