Giter Site home page Giter Site logo

Comments (5)

mag37 avatar mag37 commented on May 27, 2024

How/where would you need the API-token? Like how is it used?

My understanding is that all you've got to do is to first login with docker login --username=yourUsername and then start pulling. But I might be wrong or maybe misunderstood the issue, have not needed to troubleshoot this myself.

(link to docker-commandline-login docs )

from dockcheck.

mag37 avatar mag37 commented on May 27, 2024

I would need some more info to be able to continue on this, know the actual issue / preferred outcome.

@theroninhunter

from dockcheck.

thewookiewon avatar thewookiewon commented on May 27, 2024

Yes I can just do that docker login --username=yourUsername

Maybe I was just looking for that capability to be added to the app BUT happy if you prefer to close this FR.

from dockcheck.

mag37 avatar mag37 commented on May 27, 2024

You could create yourself a function in your .bashrc or so.

Something like

function dchk {
  docker login --username YourUser
  /home/user/dockcheck.sh "$@"
}

Then you can run eg. dchk -yp -e nginx or whatever flags/arguments needed and it would first prompt your login.

Or if you'd like to not have to write the password, but read it from a file:

function dchk {
cat ~/pwd.txt | docker login --username YourUser --password-stdin
~/dockcheck.sh "$@"
}

Edit as necessary (paths, usernames etc).

from dockcheck.

mag37 avatar mag37 commented on May 27, 2024

Added this suggestion to the Readme, wont implement it to the actual script - closing.

from dockcheck.

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.