Comments (11)
Hi,
Which OS / distro is this affecting?
Also pass
is a command line password manager that uses GPG keys to handle encrypting and decrypting passwords.
The issue hints that this is only maybe related to installing Docker Compose from your distro's repos with apt
, but this role doesn't do that. Docker Compose is installed through pip
.
Did you install Docker and / or Docker Compose through your distro's repos before using this role?
from ansible-docker.
The issue was with Debian buster.
I installed docker and docker compose with the role only.
from ansible-docker.
I had an other problem with registries.
I used the docker__registries variable to set a private registry.
The roles is set with become: yes
I launched the playbook and the docker-login task worked. But docker credentials that is stored in .docker folder is only root accessible.
ls -lha /home/ansible/.docker/
total 12K
drwxr-xr-x 2 root root 4.0K Jan 22 17:36 .
drwxr-xr-x 6 ansible ansible 4.0K Jan 22 17:36 ..
-rw------- 1 root root 142 Jan 22 17:36 config.json
So the docker login command doesn't work after the installation with the ansible user.
from ansible-docker.
I had an other problem with registries.
I used the docker__registries variable to set a private registry.
The roles is set withbecome: yes
I launched the playbook and the docker-login task worked. But docker credentials that is stored in .docker folder is only root accessible.
ls -lha /home/ansible/.docker/ total 12K drwxr-xr-x 2 root root 4.0K Jan 22 17:36 . drwxr-xr-x 6 ansible ansible 4.0K Jan 22 17:36 .. -rw------- 1 root root 142 Jan 22 17:36 config.json
So the docker login command doesn't work after the installation with the ansible user.
I used become_flags: "-i"
in playbook to fix the issue.
The .docker folder has been created in root home folder.
from ansible-docker.
Which Buster ISO are you using, or cloud hosting provider if you can't pick it?
from ansible-docker.
AWS buster
from ansible-docker.
Can you link me to the exact AMI you're using?
from ansible-docker.
https://aws.amazon.com/marketplace/pp/B0859NK4HC?ref=cns_srchrow
from ansible-docker.
The X11 issue seems related to that specific ISO of Debian. I can't reproduce it on a few other cloud vendor's versions of Debian or what comes with Vagrant's Debian box or Docker's variant of Debian.
from ansible-docker.
I have made some tests on a Vagrant host with a buster image.
I found that a previous role in my playbook install python3-docker package with apt.
This package depends on golang-docker-credential-helpers
If I remove both of them, that fix the issue.
My bad.
from ansible-docker.
Ok, so it sounds like the X11 issue is resolved without any changes to this role due to the issue you linked having resolutions available by not having a previous version of Docker / Docker Compose installed.
Going to close this.
The file permission issue with the login credentials is a separate issue and I'm working on a patch for that.
from ansible-docker.
Related Issues (20)
- Support for docker.io package (in addition to ce and ee) HOT 4
- Failed : Install Docker's dependencies HOT 9
- Package dependency error for Docker installation on clean Ubuntu 18.04 HOT 11
- Ubuntu 20.04 ImportError: No module named pkg_resources HOT 10
- Expected behavior for DockerHub private repositories login options? HOT 19
- Failed to import the required Python library HOT 10
- Update apt cache before installing packages HOT 1
- Add way to add additional packages to install HOT 3
- Versioning pinning not working HOT 5
- Install Python packages: Could not get output from /usr/local/bin/virtualenv --help HOT 16
- Hi; Please consider suppressing credentials output in: Manage Docker registry login credentials HOT 8
- Upgrade edge case HOT 9
- I'm thinking about no longer setting up a virtualenv, pip installing docker / docker compose and switching the docker_login module to a shell script HOT 2
- docker not installed into /usr/local/bin HOT 4
- Unable to find pip in the virtualenv HOT 8
- Error in new v2.2.0 version when using ansible 2.9.14 HOT 3
- Docker Compose V1 causes the Install Python packages step to crash HOT 3
- Error with pip on basic usage HOT 2
- Task exception at: Install Python packages HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-docker.