Coder Social home page Coder Social logo

Comments (4)

fsouza avatar fsouza commented on April 28, 2024

Docker speaks HTTP, so tcp://127.0.0.1:4243 and http://127.0.0.1:4243 are the same endpoint.

I will provide a quick fix.

from go-dockerclient.

rafecolton avatar rafecolton commented on April 28, 2024

Thanks for the quick fix! However, it seems that docker treats tcp:// and http:// connections slightly differently, making them not 100% interchangeable. The use case where I discovered this issue is with boot2docker.

Here is some sample output:

> DOCKER_HOST=tcp://127.0.0.1:4243 docker ps
# CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
> DOCKER_HOST=http://127.0.0.1:4243 docker ps
# 2014/04/21 12:45:23 Invalid bind address protocol: http://127.0.0.1:4243
> docker -v
# Docker version 0.10.0, build dc9c28f

from go-dockerclient.

fsouza avatar fsouza commented on April 28, 2024

This is the client-side of the docker command line, not the server. The server is an HTTP API.

from go-dockerclient.

rafecolton avatar rafecolton commented on April 28, 2024

👍 😺 Thanks!

from go-dockerclient.

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.