Im using this Module to update a Azure repo,
I’m getting this unauth error, I have logged into docker and azure creds, But still I get this:
WARNING: Error loading config file: /home/mender/.docker/config.json: stat /home/mender/.docker/config.json: permission denied Error response from daemon: Get https:/azurecr.io/manifests/4.1: unauthorized: authentication required, visit https://aka.ms/acr/authorization for more information.
This is how I’m trying to create the release :,
ARTIFACT_NAME=“load-update-1.0”
DEVICE_TYPE=“cam”
OUTPUT_PATH=load-container-update-1.0.mender
DOCKER_IMAGES=“0.azurecr.io/load/local:.1”
./docker-artifact-gen -n {ARTIFACT_NAME} -t {DEVICE_TYPE} -o {OUTPUT_PATH} {DOCKER_IMAGES}
But when I give sudo ./docker-artifact-gen -n {ARTIFACT_NAME} -t {DEVICE_TYPE} -o {OUTPUT_PATH} {DOCKER_IMAGES}, then error goes away, and It starts pulling the image, but at the end I get “Required flag " f” not set"
Please tell me, what is that Im doing wrong here
FYI: I’m able to docker pull normally, so why is this giving error
Once you are logged in into the Docker Registry (via docker login), the script docker-artifact-gen should be able to pull the image without requiring sudo. Actually, using sudo will make the script not to be able to pull the image…
Try to pull manually the image before running the script and post us here your results:
Change the permissions to what ever user you are running as, e.g you can run:
$ id
To find this out. The docker commands in the script are run as a regular user as you can see here. This is why sudo ./docker-artifact-gen ... does not help
I did this, and I ran it again,:
But I got this again:
4.0.1: Pulling from ca/local
Digest: sha256:6a095669f2819b3dcafe3f5bfe70f72c9338d3da390
Status: Image is up to date for 0.azurecr.io/ca/local:4.0.1
Required flag " f" not set
…
really didnt understand why is this happening?