question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ubuntu 18.04.1 microk8s: v1.12.2 (266)

I was trying to docker-compose up -d a Wordpress service with a port forward, using the microk8s docker and the exported DOCKER_HOST, but it failed:

driver failed programming external connectivity on endpoint hs-subscriptions_wordpress_1
(2b0dae5c331d1cf6a67c6b839631bdcd430c1cb756309f8a6d18c2cf5e98f46b): Error starting userland proxy:

This led me to discovering that /snap/microk8s/current/usr/bin/docker-proxy throws a segmentation fault (core dumped). dmesg shows:

docker-proxy[6615]: segfault at 400318 ip 00007f3d759db949 sp 00007ffc0c293a90 error 7 in ld-2.23.so[7f3d759d8000+26000]

This might be related to issue #152, but I’m not familiar enough with how docker-proxy should work in this context.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
calohmncommented, Jan 18, 2019

@xgenvn I’ve used the docker-proxy contained in https://download.docker.com/linux/static/stable/x86_64/docker-18.06.1-ce.tgz (Ie. I’ve not installed the docker package but instead have just extracted this one file from the above archive.)

2reactions
calohmncommented, Jan 17, 2019

We experienced the same issue with 1.13.2/edge (383) on Ubuntu 18.04, getting Failed to allocate and map port: Error starting userland proxy: , retry: 1 errors when using the microk8s docker.

As a workaround, we found that the “userland proxy” can either be deactivated or a path to a separate docker-proxy binary can be set.

That would be editing /var/snap/microk8s/current/args/docker-daemon.json and using either

{
  "insecure-registries" : ["localhost:32000"],
  "userland-proxy-path": "/path/to/separately/downloaded/docker-proxy"
}

or

{
  "insecure-registries" : ["localhost:32000"],
  "userland-proxy": false
}

(Note there might still be an issue with disabling the userland-proxy (see https://github.com/moby/moby/issues/14856).)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure Docker to use a proxy server - Docker Documentation
Configure Docker to use a proxy server · In Docker 17.07 and higher, you can configure the Docker client to pass proxy information...
Read more >
Configuring a Proxy in Docker - Baeldung
HTTP_PROXY is a type of proxy that acts as an intermediary server between a client and a web server. With an HTTP proxy...
Read more >
How to configure docker to use proxy - The Geek Diary
A proxy is required when the server running Docker does not have direct access to the Internet. Configure the Docker daemon to use...
Read more >
silarsis/docker-proxy - GitHub
Transparent caching proxy server for Docker containers, run in a Docker container. It can speed up the dependency-fetching part of your application build ......
Read more >
Configuring Docker For Use With a Proxy
Proxy Setup on Ubuntu 16.04 · 1. Create a docker config file at ~/.docker/config.json · 2. Edit /etc/default/docker. Change the line that says...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found