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

vagrant 1.6.5+ docker 1.6.1 on Debian Testing does not seem to work #125

Closed
rahul-amaram-vizury opened this issue May 22, 2015 · 6 comments
Assignees

Comments

@rahul-amaram-vizury
Copy link

Here is the configuration:

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  # All Vagrant configuration is done here. The most common configuration
  # options are documented and commented below. For a complete reference,
  # please see the online documentation at vagrantup.com.

  config.proxy.http     = "http://172.17.42.1:3128/"
  config.proxy.https    = "http://172.17.42.1:3128/"
  config.proxy.ftp      = "http://172.17.42.1:3128/"
  config.proxy.no_proxy = "localhost,127.0.0.1"
  ...
  ...
  ...
  config.vm.provider "docker" do |d|
    d.build_dir = "vagrant"
    d.has_ssh = true
  end
  ...
  ...
  ...
end

Is anything else needed? When I run vagrant using --debug , it shows that the proxyconf plugin got loaded. However, the proxy configuration does not seem to be used by docker. I believe I also restarted docker though I am not sure if this is really needed.

@mrsheepuk
Copy link
Contributor

I think this is caused by needing to set the proxy config in /etc/systemd/system/docker.service.d/http-proxy.conf on the newer deb/ubuntu versions which use systemd instead of upstart.

I've managed to get docker respecting the proxy by manually adding that file with content like:

[Service] 
Environment="HTTP_PROXY=http://10.0.0.10:8080/" "HTTPS_PROXY=http://10.0.0.10:8080/"

... however I don't know Ruby so my attempts to update vagrant-proxyconf to push this out have been unsuccessful so far.

@mrsheepuk
Copy link
Contributor

I've made a pull request #133 which may address this, it works for me but as I say I'm not an experienced Ruby person so I may have made some fundamental errors in it!

@otahi
Copy link
Collaborator

otahi commented Sep 11, 2015

@rahul-amaram-vizury I am sorry, I could not respond. Please tell me the Debian version.
@mrsheepuk Thank you for reminding me, I will check it later.

@otahi otahi self-assigned this Sep 11, 2015
@rahul-amaram-vizury
Copy link
Author

I don't remember the complete context for this ticket as it has been a long time. I am currently using Debian Testing (stretch). I think I had implemented some workaround for this problem but I'm sorry I cannot recollect it now.

@otahi
Copy link
Collaborator

otahi commented Sep 16, 2015

OK. Ubuntu/Debian Docker official package issue is discussed on #133.
So I have closed this issue.

@otahi otahi closed this as completed Sep 16, 2015
@ghost
Copy link

ghost commented Aug 6, 2018

Is this resolved because having ubuntu 18.04 as guest i still have to manually change it like here:
https://docs.docker.com/config/daemon/systemd/#httphttps-proxy

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

3 participants