Monday, 5 February 2018

Pip unable to download packages running in a Ubuntu docker image on kubernetes

I recently ran into a problem where pip was unable to download packages while running in a docker image on a kubernetes pod. The issue seemed to be that it could not find the actual repo to download from - likely due to some kind of networking issue within either docker or kubernetes. The solution turned out to be to create a file at /etc/docker/daemon.json and enter google's DNS servers as follows:

{ "dns": ["8.8.8.8", "8.8.4.4"] }

I was working from a Ubuntu base image, so I created the file as above before installing and starting docker. Keep in mind that as docker images usually don't contain systemmd, it's not all that easy to restart docker once you have installed it, so creating the configuration first is pretty useful. You can find more information on this at https://development.robinwinslow.uk/2016/06/23/fix-docker-networking-dns/

3 comments:

  1. Amid every single one of our dashes, we make an item that is shippable. It very well may be extremely fundamental, and it is anything but an issue. Common Running Injuries

    ReplyDelete
  2. The video games talked about beneath are a few of our most popular 3D video games. There are a number of} types of additive manufacturing, but day dreamer lounger the phrases 3D printing and additive manufacturing are sometimes used interchangeably. Explore Raise3D 3D printing trade options in medical subject. Find out more in regards to the options Raise3D provides and see how Raise3D manufacturing workflow has helped many enterprises like yours. The supply code is licensed utilizing the GNU General Public License. As a result, K-3D could be constructed on GNU/Linux, MacOS X, FreeBSD, Microsoft Windows, and different platforms.

    ReplyDelete
  3. Beyond science, 3D printed properties and shelters have also turn out to be one of many cool things to 3D print across the world. To tackle the housing issue around the globe, companies have been using this expertise to print emergency shelters and 3D printed properties. With this expertise, companies and cities can construct a group in a much shorter amount of time and for a Shower Caps for Women value cheaper than traditional residence constructing strategies. Each residence contained in the group can then be purchased at a extra affordable price.

    ReplyDelete

AWS Keyspaces - Managed Cassandra review

AWS recently went live with Keyspaces, their managed version of Cassandra ( https://aws.amazon.com/keyspaces/ ). This service is primarily a...