Comments (9)
There is the additional flag in the CLI now -registryAuth=
. If you want to parse your file with jq and pass it to the CLI that's fine, it would also work. MacOS doesn't use this file anymore but the keychain.
Let me know how you get on with the fix. I'll close the issue for now since there is a way to do this.
from jaas.
Thanks for taking an interest in my JaaS project, you might also like Functions as a Service which is much more complete for running ad-hoc functions on Docker Swarm.
So regarding JaaS - since you can't login interactively through cron, you would need to provide the encoded registry token to the CLI. Here's an example for a new flag I can add -registryAuth
:
$ echo admin:admin | base64
YWRtaW46YWRtaW4K
$ jaas -registryAuth=YWRtaW46YWRtaW4K -etc -etc
Does that work for you?
from jaas.
Your Faas project looks really interesting, I'll have to set aside some time to read through the setup!
That sounds good if it's that simple. I had a look at the docker client, I guess it's maybe a customer header when you make the client?
from jaas.
So do you have a password protecting pulls or just push? Is this registry:2
or the Docker Hub you mean by "private"?
from jaas.
registry:2 self-hosted, protecting both.
from jaas.
It'll be something more like this then via docs:
$ jaas -image=myregistrydomain.com:5000/pinger -rm -showlogs=true --registryAuth=$(echo '{"username": "admin", "password": "admin"}'|base64)
You may just want to store the result of $(echo '{"username": "admin", "password": "admin"}'|base64
into a file.
Try pulling from master and re-building.
from jaas.
from jaas.
Actually, I think it's just a header with user:pass, basic auth. My local .docker/config.json has the following for instance:
{
"auths": {
"https://index.docker.io/v1/": {
"auth": "DUMMYBASE64="
},
"registry.acme.se": {
"auth": "DUMMYBASE64="
}
}
}
Where registry.acme.se is v2.
EDIT: Ah ok, I see that one can actually login with v2 api: https://success.docker.com/Cloud/Solve/How_do_I_authenticate_with_the_V2_API%3F
from jaas.
Thanks very much, @alexellis!
from jaas.
Related Issues (20)
- Idea: binary releases on GitHub HOT 6
- Feature: Add env file support HOT 6
- Feature: Add ability to specify command HOT 2
- Proposal: configure tasks via a YAML file instead of CLI HOT 3
- Idea: API/remote server component
- Improve docs on --remove flag HOT 3
- Run command is not unit tested
- Idea: Provide jaas run with compose file and service name for service creation HOT 1
- ENHANCEMENT : Follow logs tail style HOT 3
- No logs displayed when launched command is in error HOT 4
- Feature request: Specify network HOT 2
- Please consider adding support for setting the mode for secrets HOT 7
- Cannot show logs with API version 1.29 HOT 2
- Add support for volume mounts
- The ability to add reservations information to a job (memory, cpu) HOT 1
- [Improvement] Always remove when requested HOT 1
- Idea: add supports to env-file HOT 3
- question: how use authentication for v2 registries HOT 3
- bug: the --verbose (-b) flag isnt working
- feature: let change the log-driver with a flag
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 jaas.