Hi
I’m trying to create my own torizoncore image according this article. Now I want get my Docker containers onto my image according this article. I uploaded all my docker images to my private docker registry (gitlab.com) and created a corresponding docker-compose file. If I compose locally on the device, it works. But if I execute this command (on my notebook/Ubuntu 20.04LTS):
torizoncore-builder bundle --host-workdir=$(pwd) --platform=linux/arm64 --file docker-compose.yml --docker-username my@login.com --docker-password mYpAssword
I get this error:
torizoncore-builder bundle --host-workdir=$(pwd) --platform=linux/arm64 --file docker-compose.yml --docker-username my@emaillogin.com --docker-password mypw
An unexpected Exception occured. Please provide the following stack trace to
the Toradex TorizonCore support team:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/docker/api/client.py", line 268, in _raise_for_status
response.raise_for_status()
File "/usr/local/lib/python3.9/dist-packages/requests/models.py", line 943, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://127.0.0.1:22376/v1.40/auth
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/builder/torizoncore-builder", line 172, in <module>
mainargs.func(mainargs)
File "/builder/tcbuilder/cli/bundle.py", line 22, in bundle_containers
dockerbundle.download_containers_by_compose_file(
File "/builder/dockerbundle.py", line 273, in download_containers_by_compose_file
dind_client.login(docker_username, docker_password)
File "/usr/local/lib/python3.9/dist-packages/docker/client.py", line 199, in login
return self.api.login(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/docker/api/daemon.py", line 152, in login
return self._result(response, json=True)
File "/usr/local/lib/python3.9/dist-packages/docker/api/client.py", line 274, in _result
self._raise_for_status(response)
File "/usr/local/lib/python3.9/dist-packages/docker/api/client.py", line 270, in _raise_for_status
raise create_api_error_from_http_exception(e)
File "/usr/local/lib/python3.9/dist-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
raise cls(e, response=response, explanation=explanation)
docker.errors.APIError: 401 Client Error for https://127.0.0.1:22376/v1.40/auth: Unauthorized ("Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password")
The login credentials are correct, for that I tested the script on different devices. I’m using torizoncore-builder on a Ubuntu 20.04LTS machine, the other commands worked well till now. I already checked the help:
torizoncore-builder bundle --help