Code Monkey home page Code Monkey logo

Comments (3)

ljmccarthy avatar ljmccarthy commented on August 16, 2024

Here's a trivial example which can be used as a test case:

ljmcc@pythagoras~ $ docker run -t -i --rm ubuntu bash
Unable to find image 'ubuntu:latest' locally
latest: Pulling from library/ubuntu
3153aa388d02: Pull complete 
Digest: sha256:0bced47fffa3361afa981854fcabcd4577cd43cebbb808cea2b1f33a3dd7f508
Status: Downloaded newer image for ubuntu:latest
root@2e3c52d6fe66:/# 
exit
ljmcc@pythagoras~ $ sudo lsof -i :12345
ljmcc@pythagoras~ $ docker run -p 12345:12345 -t -i --rm ubuntu bash
docker: Error response from daemon: driver failed programming external connectivity on endpoint gallant_antonelli (06282f5b0effbe7b8c0a15bf0f67f33bc02f38c94e77711eecc48b5e199e7eec): Error starting userland proxy: listen tcp [::]:12345: bind: address already in use.

from distribution.

bryteise avatar bryteise commented on August 16, 2024

See #2918

from distribution.

apwiggins avatar apwiggins commented on August 16, 2024

What's the source for upstream change? Is this an actual directed change or an upstream reportable bug? Docker release notes for v24 make no mention of changes to the ports specfication -- which is a pretty signifcant change given that it would break most docker-compose YAMLs and bash scripts.
https://docs.docker.com/engine/release-notes/24.0/

Docker documentation (which I'm assuming is current) shows that a plain port specification is valid. It only mentions using an IP address as an optional improvement
https://docs.docker.com/network/
The Clear Linux forum post and workaround doesn't really clear the air and doesn't show that upstream changed port specification behaviour intentionally. This is still a problem and seems to deviate from upstream Docker's intentions.

unfortunately upstream docker changed their syntax for this see also https://community.clearlinux.org/t/docker-issue-on-clear-linux/8927 for discussion/solutions

On Sun, Jul 2, 2023 at 11:08 AM moroznah @.> wrote: Multiple VMs updated to 39540, Docker version 24.0.2 no longer starts any containers with port mapping ("-p" option). Ex. error: ERROR: for webapp Cannot start service webapp: driver failed programming external connectivity on endpoint webapp (8b4185c591f7adeba74997fdc78b78bff436dc5cb3bb8efd5b80a4b2f33f8982): Error starting userland proxy: listen tcp [::]:8000: bind: address already in use All these ports are not used and multiple containers worked prior to update. — Reply to this email directly, view it on GitHub #2918, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ54FMCBL7Y77ED46C6NLDXOG2J7ANCNFSM6AAAAAAZ3SUWJU . You are receiving this because you are subscribed to this thread.Message ID: @.>

from distribution.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.