Giter Club home page Giter Club logo

Comments (5)

phuctm97 avatar phuctm97 commented on June 5, 2024

Was this resolved?

from docker-modem.

chrmarti avatar chrmarti commented on June 5, 2024

Not that I know.

from docker-modem.

karolz-ms avatar karolz-ms commented on June 5, 2024

I would love to see this fixed too. Here are more detailed repro steps--hope this helps

  1. Configure an SSH host with a non-DNS-resolvable name (Host field in./ssh/config, e.g. mydevbox) that maps to real machine name or IP address (HostName field, e.g. mydevbox.real.dns.name). See http://man7.org/linux/man-pages/man5/ssh_config.5.html for details. The following steps assume Docker is installed on mydevbox machine.
  2. Set up SSH public key authentication to mydevbox (see https://www.ssh.com/ssh/agent for details)
  3. Verify SSH connection to mydevbox works (ssh mydevbox should suffice)
  4. Set DOCKER_HOST to ssh://mydevbox. Verify Docker CLI works and shows Docker assets on mydevbox (docker ps, docker images etc).
  5. Try to open a connection to Docker using docker-modem

Expected: it should work, just like the Docker CLI
Actual: it does not work. This is because docker-modem implementation requires the host to be fully resolvable through DNS. Even placing an entry in /etc/hosts does not help

Using non-DNS-resolvable name comes handy in several situations, for example:

  • The machine running Docker is an ephemeral machine with no public DNS entry
  • The host nickname is used as a way to indicate what user identity to use when connecting to the host

from docker-modem.

phuctm97 avatar phuctm97 commented on June 5, 2024

@karolz-ms I had same issues, too. Therefore, I'm going to create a PR fixing this, however it's just going to happen in at least two more weeks.

from docker-modem.

karolz-ms avatar karolz-ms commented on June 5, 2024

@phuctm97 that would be awesome, let me know if I can be of help!

from docker-modem.

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.