Comments (7)
Issue-Label Bot is automatically applying the label question
to this issue, with a confidence of 0.61. Please mark this comment with 👍 or 👎 to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
from worker.
The reason your seeing issues is likely because that while you configured ~/.docker/config.json
you did so on the host, not on the worker container - you'll need to mount the ~/.docker/config.json
onto the same path inside the worker container for it to be able to see your configured config.json (read only will likely be enough but not 100% sure about it).
There's a bit more info about it on https://nebula.readthedocs.io/en/latest/config/worker/ on the registry_auth_user
& registry_auth_password
description fields.
from worker.
Hello @naorlivne
Thanks for the response. I mounted ~/.docker/config.json
onto the same path inside the worker container. But I am getting this error =>
worker | reading config variables
worker | /usr/local/lib/python3.7/site-packages/parse_it/file/file_reader.py:55: UserWarning: config_folder_location does not exist, only envvars & cli args will be used
worker | warnings.warn("config_folder_location does not exist, only envvars & cli args will be used")
worker | reading config variables
worker | no registry user pass combo defined, skipping registry login
worker | checking nebula manager connection
worker | nebula manager connection ok
worker | stopping all preexisting nebula managed app containers in order to ensure a clean slate on boot
worker | initial start of <my-image> app
worker | pulling image <my_registry_url>/<my-image>:latest
worker | <my_registry_url>/<my-image>
worker | problem pulling image <my_registry_url>/<my-image>:latest
worker | docker-credential-ecr-login not installed or not available in PATH
This is my docker-compose.yml
=>
version: '3'
services:
worker:
container_name: worker
build:
context: .
dockerfile: Dockerfile
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/root/.docker/config.json
restart: unless-stopped
hostname: worker
environment:
REGISTRY_HOST: < my_regisrty_url >
MAX_RESTART_WAIT_IN_SECONDS: 0
NEBULA_MANAGER_AUTH_USER: nebula
NEBULA_MANAGER_AUTH_PASSWORD: nebula
NEBULA_MANAGER_HOST: < my_manager_url >
NEBULA_MANAGER_PORT: 80
NEBULA_MANAGER_PROTOCOL: http
NEBULA_MANAGER_CHECK_IN_TIME: 30
DEVICE_GROUP: test
KAFKA_BOOTSTRAP_SERVERS: < my_manager_url >:9092
KAFKA_TOPIC: nebula-reports
what am I doing wrong here?
from worker.
worker | docker-credential-ecr-login not installed or not available in PATH
seems like the important line to me, I admit to not being a big fan of ECR exectly due to headaches like this so I may be wrong but it seems like it requires access to the ECR codebase rather then just the config.json (which is not part of the container but rather the host again) making this related to awslabs/amazon-ecr-credential-helper#56
Seems like you'll have to install the Amazon ECR Docker Credential Helper & configure it (including the AWS access keys) inside the worker container to get it to work.
Possibly helpful link - https://serverfault.com/questions/897636/how-to-add-amazon-ecr-credential-helper-to-path
from worker.
Hello, @naorlivne Thanks for the response. Is there a better alternative for ECR that I can integrate with the Nebula worker.
Note: I have already tried docker registry open source. But I am looking for a solution which has a GUI which makes easy in the management of the releases (i.e. Images ). As ECR was suitable for that use case so I went with the ECR.
from worker.
Personally I use docker hub as it's managed by Docker Inc but any registry that supports the standard docker login process will work
from worker.
Thanks, I'll check it.
from worker.
Related Issues (20)
- Connecting to a nebula managr hosted at a non root path HOT 3
- Query about a container running standalone script !! HOT 3
- Dependabot couldn't authenticate with https://pypi.python.org/simple/ HOT 1
- Prune image API not working HOT 3
- Cron jobs do not work per schedule if its frequency is shorter than the check-in time of worker HOT 2
- Build breaking due to unavailable package `freeze` HOT 3
- Add automated unit tests HOT 2
- Move automatic Docker imags build from Docker Hub to Travis-CI HOT 1
- have worker have the option to connect to the managers with a UUID token instead of basic auth HOT 1
- Self update worker container on deployed remote devices HOT 11
- Add cron jobs management support HOT 1
- Auto match version to branch on deployment and have it part of the report generated for the optional reporting system HOT 1
- fix creating new branch from last push not starting travis run due to auto added changelog having the [skip travis] flag on the commit message HOT 1
- Facing issue in running worker on remote device. HOT 6
- Facing issue in creating reporting kafka connection object HOT 5
- How to check if edge device is updated successfully? HOT 6
- Feature Request: Get Update status at the reporter from worker only when update is performed ( failed or successful ). HOT 11
- Consider moving ARM CI/CD build to drone.io HOT 1
- Create containers multiarch manifest file to allow single container multiarch support HOT 1
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 worker.