Giter VIP home page Giter VIP logo

Comments (11)

nickjj avatar nickjj commented on July 20, 2024

Hi,

What version of this role are you using?

from ansible-docker.

Claud avatar Claud commented on July 20, 2024

{install_date: 'Thu Nov 8 21:03:28 2018', version: v1.4.0}

from ansible-docker.

nickjj avatar nickjj commented on July 20, 2024

Have you tried logging into the registry manually using docker login and using the exact same credentials you supplied to the role, using the same exact user?

from ansible-docker.

Claud avatar Claud commented on July 20, 2024

yes. I tried this.


WARNING! Your password will be stored unencrypted in /home/claud/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded

from ansible-docker.

nickjj avatar nickjj commented on July 20, 2024

What happens if you set system_user: "root" to your registry list item?

Or replace root with a user that exists in docker__users.

from ansible-docker.

Claud avatar Claud commented on July 20, 2024

I have set system_user: "root" and this worked.

from ansible-docker.

Claud avatar Claud commented on July 20, 2024

Thx

from ansible-docker.

nickjj avatar nickjj commented on July 20, 2024

Thanks for the report. This was actually a bug then.

I need to have the system_user default to root if no system_user is supplied.

from ansible-docker.

nickjj avatar nickjj commented on July 20, 2024

This has been fixed in v1.5.0 and pushed to the Galaxy.

The new behavior is:

  1. Supplied your own system_user? It will use that.
  2. OR Have at least 1 user set in docker__users? It will use the first user in that list.
  3. OR Didn't have a user set? Fall back to using the root user.

In your case it means you can remove system_user: "root" since it will use that by default.

from ansible-docker.

Claud avatar Claud commented on July 20, 2024

No, I can't do it. I have "docker__users" and it the user has access to "sudo" command. But when I tried
to set it for "system_user" I see an error.

from ansible-docker.

nickjj avatar nickjj commented on July 20, 2024

What error did you get?

from ansible-docker.

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.