You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
push.py expects docker-compose built image to be named hokusai_<project-name>, because that's how docker-compose v1 names it. However, this does not work with docker-compose v2. In v2, the image name is hokusai-<project-name>. The separator is a dash instead of underscore.
Because of this, users who have docker-compose v2 get this error when running hokusai registry push:
Traceback (most recent call last):
File "hokusai/lib/command.py", line 17, in wrapper
File "hokusai/commands/push.py", line 34, in push
File "hokusai/lib/common.py", line 85, in shout
File "subprocess.py", line 223, in check_output
CalledProcessError: Command 'docker tag hokusai_<FILTERED>:latest <FILTERED>.dkr.ecr.us-east-1.amazonaws.com/<FILTERED>:<FILTERED>-1122' returned non-zero exit status 1
ERROR: Error response from daemon: No such image: hokusai_<FILTERED>:latest
Possible solution: Let Hokusai check user's version of docker-compose and adjust.
The text was updated successfully, but these errors were encountered:
artsyjian
changed the title
docker-compose v2 has changed image name separator
hokusai push fails due to docker-compose v2 image naming change
Mar 2, 2023
Possible solution: Let Hokusai check user's version of docker-compose and adjust.
This will not always work. The image name can also be specified in Docker Compose YAML, and when specified there it takes precedence. Force, for example, does specify the image name, with an underscore, so the image name will be with an underscore, even if the image is built with Compose v2.
push.py expects docker-compose built image to be named
hokusai_<project-name>
, because that's how docker-compose v1 names it. However, this does not work with docker-compose v2. In v2, the image name ishokusai-<project-name>
. The separator is a dash instead of underscore.Because of this, users who have docker-compose v2 get this error when running
hokusai registry push
:Possible solution: Let Hokusai check user's version of docker-compose and adjust.
The text was updated successfully, but these errors were encountered: