Hi,
I use torizoncore-builder to create a production image of my applcation.
Using a local registry this works fine.
Now I want to use Github container registry ghcr.io
I have modifier my docker-compose.prod.yml like this:
version: “2.4”
services:
torizon_buoy:
image: ghcr.io/nortekmed/torizon_buoy_prod:latest
#image: localhost:5002/torizon_buoy_prod:latest
container_name: torizon_buoy_prod
restart: always
working_dir: /home/torizon/app
devices:
- /dev/colibri-i2c:/dev/colibri-i2c
- /dev/colibri-uarta:/dev/colibri-uarta
- /dev/colibri-uartb:/dev/colibri-uartb
- /dev/colibri-uartc:/dev/colibri-uartc
- /dev/rtc:/dev/rtc
volumes:
- /proc/mounts:/host/proc/mounts:ro
- /dev:/dev
- /local/user/etc/torizonbuoy:/local/user/etc/torizonbuoy:rw
- /mnt/SDcard:/mnt/SDcard:rw
cap_add:
- SYS_TIME
I’m have issue when running:
torizoncore-builder bundle docker-compose.prod.yml
Creating Docker Container bundle…
NOTE: TCB no longer expands environment variables present in the compose file.
Starting DIND container
Using Docker host “tcp://127.0.0.1:22376”
Connecting to Docker Daemon at “tcp://127.0.0.1:22376”
Fetching container image ghcr.io/nortekmed/torizon_buoy_prod:latest in service torizon_buoy
Stopping DIND container
Error: container images download failed: 500 Server Error for https://127.0.0.1:22376/v1.44/images/create?tag=latest&fromImage=ghcr.io%2Fnortekmed%2Ftorizon_buoy_prod: Internal Server Error (“Head “https://ghcr.io/v2/nortekmed/torizon_buoy_prod/manifests/latest”: unauthorized”)
DIND does not get my credentials, how to provide it my token to it and so login to ghcr.io ?