[lxc-users] Unable to deploy any application inside container

Gandhi, Ibha (HP Software) ibhag at hp.com
Wed Jan 15 06:27:42 UTC 2014


Hi,

I am trying to install git inside container using command:
sudo apt-get --option Dpkg::Options::=--force-confold --assume-yes install git

But I get the error:
sudo: unable to resolve host root-local-machine-2
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  git-man liberror-perl
Suggested packages:
  git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn git-email git-gui gitk gitweb
The following NEW packages will be installed:
  git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 6,741 kB of archives.
After this operation, 15.2 MB of additional disk space will be used.
Err http://archive.ubuntu.com/ubuntu/ precise/main liberror-perl all 0.17-1
  Could not connect to 16.x.x.x:8080 (16.x.x.x), connection timed out
16.x.x.x is my proxy server.

I did the exact setup on my other VM where I did not change anything inside the container and
yet it is able to connect to internet through proxy. Proxy is setup on host machine in  /etc/environment and
/etc/apt/apt.conf file and the container picks from there.

Seems I missed some step in this particular VM, hence "Could not connect error". Please let me know if I need
to make some changes to host machine so that containers can also  connect to internet through proxy.

Thanks.
- Ibha


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140115/20b77214/attachment-0001.html>


More information about the lxc-users mailing list