New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forge setup does not work with Amazon ECR #70

Closed
plombardi89 opened this Issue Oct 9, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@plombardi89
Contributor

plombardi89 commented Oct 9, 2017

Trying to get Forge to push into a private container registry in Amazon ECR

plombardi@palwork ~/w/k7t-be-multiclaim> forge setup
╔═setup
║ == Checking Kubernetes Setup ==
║ 
║ kubectl version --short
║ Client Version: v1.7.2
║ Server Version: v1.7.4
║ 1 tasks run, 0 errors
║ kubectl get service kubernetes --namespace default
║ NAME         CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE
║ kubernetes   10.96.0.1    <none>        443/TCP   2d
║ 1 tasks run, 0 errors
║ 
║ == Setting up Docker ==
║ 
║ Docker registry[registry.hub.docker.com]: 914373874199.dkr.ecr.us-east-1.amazonaws.com
║ Docker user[plombardi]: AWS
║ Docker organization[AWS]: kubernaut
║ Docker password: 
║ 
║ docker login -u AWS -p <ELIDED> 914373874199.dkr.ecr.us-east-1.amazonaws.com
║ Login Succeeded
║ docker pull registry.hub.docker.com/datawire/forge-setup-test:1
║ 1: Pulling from datawire/forge-setup-test
║ Digest: sha256:c0537ff6a5218ef531ece93d4984efc99bbf3f7497c0a7726c88e2bb7584dc96
║ Status: Image is up to date for registry.hub.docker.com/datawire/forge-setup-test:1
║ docker tag registry.hub.docker.com/datawire/forge-setup-test:1 914373874199.dkr.ecr.us-east-1.amazonaws.com/kubernaut/forge_test:dummy
║ docker push 914373874199.dkr.ecr.us-east-1.amazonaws.com/kubernaut/forge_test:dummy
║ The push refers to a repository [914373874199.dkr.ecr.us-east-1.amazonaws.com/kubernaut/forge_test]
║ e154057080f4: Preparing
║ name unknown: The repository with name 'kubernaut/forge_test' does not exist in the registry with id '914373874199'
║ 11 tasks run, 1 errors
║   setup: command 'docker push 914373874199.dkr.ecr.us-east-1.amazonaws.com/kubernaut/forge_test:dummy' failed[1]: The push refers to a repository [914373874199.dkr.ecr.us-east-1.amazonaws.com/kubernaut/forge_test]
║ e154057080f4: Preparing
║ name unknown: The repository with name 'kubernaut/forge_test' does not exist in the registry with id '914373874199'
@plombardi89

This comment has been minimized.

Contributor

plombardi89 commented Oct 9, 2017

Problem appears to be because Amazon ECR requires Docker repositories be pre-created before pushing images via the AWS CLI or UI.

@rhs rhs self-assigned this Oct 31, 2017

@rhs

This comment has been minimized.

Contributor

rhs commented Nov 7, 2017

Fixed in 0.3.16

@rhs rhs closed this Nov 7, 2017

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