Giter Site home page Giter Site logo

Comments (5)

mendhak avatar mendhak commented on August 22, 2024 1

@mikaello like this? #46

I've also pushed a test tag :issue45-labels if you want to test.

from docker-http-https-echo.

mikaello avatar mikaello commented on August 22, 2024

@mikaello like this? #46

Exactly (or almost, minor change commented in PR), thanks a lot for your swift reply!

I've also pushed a test tag :issue45-labels if you want to test.

Currently the labels are not in the final build, as mentioned in the PR:

$ docker inspect mendhak/http-https-echo:issue45-labels --format '{{ .Config.Labels }}'
map[]

from docker-http-https-echo.

mendhak avatar mendhak commented on August 22, 2024

Ah thanks for that command. OK I pushed a different tag now,

docker pull mendhak/http-https-echo:labels
docker inspect lscr.io/linuxserver/transmission --format '{{ .Config.Labels }}'

And this is the output I get

map[org.opencontainers.image.description:Docker image that echoes request data as JSON; listens on HTTP/S, with various extra features, useful for debugging. org.opencontainers.image.documentation:https://github.com/mendhak/docker-http-https-echo/blob/master/README.md org.opencontainers.image.licenses:MIT org.opencontainers.image.source:https://github.com/mendhak/docker-http-https-echo org.opencontainers.image.title:http-https-echo org.opencontainers.image.url:https://github.com/mendhak/docker-http-https-echo]

Well it looks like a mapping of some sort. Looking better now?

from docker-http-https-echo.

mikaello avatar mikaello commented on August 22, 2024

Looks very good! You can add json in the formatting string to get JSON:

$ docker inspect mendhak/http-https-echo:labels --format '{{json .Config.Labels }}' | jq
{
  "org.opencontainers.image.description": "Docker image that echoes request data as JSON; listens on HTTP/S, with various extra features, useful for debugging.",
  "org.opencontainers.image.documentation": "https://github.com/mendhak/docker-http-https-echo/blob/master/README.md",
  "org.opencontainers.image.licenses": "MIT",
  "org.opencontainers.image.source": "https://github.com/mendhak/docker-http-https-echo",
  "org.opencontainers.image.title": "http-https-echo",
  "org.opencontainers.image.url": "https://github.com/mendhak/docker-http-https-echo"
}

from docker-http-https-echo.

mendhak avatar mendhak commented on August 22, 2024

Thanks again for that. :27 is now in Docker Hub.

from docker-http-https-echo.

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.