Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/tmp/vagrant-shell: line 1: docker: command not found #27

Open
koxon opened this issue May 24, 2016 · 0 comments
Open

/tmp/vagrant-shell: line 1: docker: command not found #27

koxon opened this issue May 24, 2016 · 0 comments

Comments

@koxon
Copy link

koxon commented May 24, 2016

Hi,

Since late morning vagrant up --provision doesn't work on our different systems.
We have made no changes to our VagrantFile.
We use: phusion/ubuntu-14.04-amd64

The error output is:

DEBUG ssh: Re-using SSH connection.
 INFO ssh: Execute: chmod +x '/tmp/vagrant-shell' && /tmp/vagrant-shell (sudo=true)
DEBUG ssh: stderr: /tmp/vagrant-shell: line 1: docker: command not found

 INFO interface: info: /tmp/vagrant-shell: line 1: docker: command not found
 INFO interface: info: ==> dev: /tmp/vagrant-shell: line 1: docker: command not found
==> dev: /tmp/vagrant-shell: line 1: docker: command not found
DEBUG ssh: stderr: /tmp/vagrant-shell: line 1: docker: command not found

 INFO interface: info: /tmp/vagrant-shell: line 1: docker: command not found
 INFO interface: info: ==> dev: /tmp/vagrant-shell: line 1: docker: command not found
==> dev: /tmp/vagrant-shell: line 1: docker: command not found
DEBUG ssh: Exit status: 127
ERROR warden: Error occurred: The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.

I don't see any changes to the image so I'm wondering what could possibly cause this?

Here is the section of the VagrantFile causing the problem:

# Dev box with mounted data volume overlaying the code
  config.vm.define "dev", primary: true do |dev|
    ENV['FORCE_AUTH'] ||= ''
    ENV['BETA'] ||= ''
    dev.vm.network "forwarded_port", guest: 80, host: 8080
    dev.vm.provision "docker" do |d|
      d.pull_images "memcached"
      d.build_image "/vagrant/sa_site", args: "-t sportarc/sa_site"

      d.run "memcached"
      d.run "sportarc/sa_site",
            args: "-p 80:80 --env-file=/vagrant/.env.dev " +
            "-e ENVIRONMENT=dev " +
            "-e FORCE_AUTH=" + ENV['FORCE_AUTH'] + " " +
            "-e BETA=" + ENV['BETA'] + " " +
            "-e MEMCACHED_ENDPOINT='memcached' " +
            "--link memcached:memcached " +
            "-v /var/tmp/logs/sa_site:/var/log/sa_site " +
            "-v /var/tmp/logs/apache2:/var/log/apache2 " +
            "-v /var/tmp/logs/php5:/var/log/php5 " +
            "-v /vagrant/sa_site/sa_site_v2:/opt/sa_site " +
            "-v /vagrant/.git:/.git"
    end

    dev.vm.provision "shell", inline: "cd /vagrant/sa_site && ./dev.sh"
    dev.vm.provision "shell", inline: "echo \"SUCCESS: Vagrant provisioned.\""
  end

Please advise if you have any idea what could be causing this?

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant