Hi,
This is a brief note to report that after you follow the process of updating imx8x modules from 5.7.2, there seems to be some missing files and ownership/permission issues with /etc/docker.
Step 1. With docker desktop etc up and running, grab a container from my repo
torizon@colibri-imx8x-00000000:~$ docker pull XXXX/XXXXXXX
Using default tag: latest
Error response from daemon: pull access denied for XXXX/XXXXXXX, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
torizon@colibri-imx8x-00000000:~$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
So try to login…
Username: username
Password: Password1
WARNING! Your password will be stored unencrypted in /etc/docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Error saving credentials: open /etc/docker/config.json3002734377: permission denied
Step 2. Roll up sleeves. Change the permissions
Change the owner to “torizon” and relaxed set of permissions - 775
torizon@colibri-imx8x-00000000:~$ sudo chmod 775 --recursive /etc/docker/*.*
torizon@colibri-imx8x-00000000:~$ sudo chown torizon --recursive /etc/docker/*.*
Try to log in again
torizon@colibri-imx8x-00000000:~$ docker login
Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
Username: username
Password: Password1
WARNING! Your password will be stored unencrypted in /etc/docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
So far so good. Lets try to get the container
torizon@colibri-imx8x-00000000:~$ docker pull XXXX/XXXXXXX
Using default tag: latest
latest: Pulling from XXXX/XXXXXXX
5b1423465504: Downloading [=> ] 612.7kB/30.06MB
f9b97b892212: Downloading [===> ] 119.4kB/1.908MB
5b7508c68219: Download complete
Success. Docker-compose up and away !!!
Questions:
This is clearly different to a new module out the box. Looking around the notes on the Torizon website, this behaviour is different from before the update. Is it meant to be different?
So is it possible to either update the upgrade path notes, or could this be fixed to make things behave as before as part of the update?
I set my permissions at quite an easily hacked 775, what permission should /etc/docker be?
Hope this is helpful, and I will wait before doing a bigger batch of these modules to see what the Toradex team think is best.
I have been capturing the changes using “torizoncore-builder isolate”, its a great tool and will save me a lot of work with all the updates I have to do!
Yours truly
Richard