Skip to content

Instantly share code, notes, and snippets.

@koduki
Last active January 12, 2018 17:40
Show Gist options
  • Save koduki/f114c206130155d95e6d2e71c33f54f6 to your computer and use it in GitHub Desktop.
Save koduki/f114c206130155d95e6d2e71c33f54f6 to your computer and use it in GitHub Desktop.
下記のエラーが発生
Successfully built 5a6d26f6b991
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
The push refers to a repository [registry.heroku.com/secret-fjord-96615/web]
03c19e4bdde5: Preparing
5c331e8bd692: Preparing
d9bec0efee77: Preparing
d55a8cc45244: Preparing
52207ae120e6: Preparing
9007f5987db3: Preparing
no basic auth credentials
! Error: docker push exited with 1
下記で無事解決
docker login --email=_ --username=_ --password=$(heroku auth:token) registry.heroku.com
Successfully built 5a6d26f6b991
SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
The push refers to a repository [registry.heroku.com/secret-fjord-96615/web]
03c19e4bdde5: Pushed
5c331e8bd692: Pushed
d9bec0efee77: Pushed
d55a8cc45244: Pushed
52207ae120e6: Pushed
9007f5987db3: Pushed
latest: digest: sha256:bec8fb5c31170e688580d2cb0eb99ec29cd3edd9eddb6ef75169b10d0ec13603 size: 1573
詳しくはこちら参照
https://github.com/Financial-Times/heroku-docker-node-alpine-example
https://devcenter.heroku.com/articles/container-registry-and-runtime
@unceus
Copy link

unceus commented Jan 12, 2018

Thank you so much for posting this! I also ran into the no basic auth credentials issue and had no idea where to begin.

On Docker 17.12.0-ce on linux, there is no --email flag for my local docker binary. There is a --username flag however, for which I supplied my Heroku email and then was able to login.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment