Skip to content
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

kompose up returning ErrImagePull while pulling from a private repo #1102

Closed
tal47 opened this issue Feb 4, 2019 · 1 comment
Closed

kompose up returning ErrImagePull while pulling from a private repo #1102

tal47 opened this issue Feb 4, 2019 · 1 comment

Comments

@tal47
Copy link

tal47 commented Feb 4, 2019

Hi all,
I have created (and pushed) a private docker hub repo, and created a secret using:

$ echo -n 'password' > ./password.txt
$ echo -n 'user' > ./username.txt
$ kubectl create secret generic docker-user-pass --from-file=./username.txt --from-file=./password.txt
secret/docker-user-pass created

Now, I have created a docker-compose.yml file:

version: '3.1'
services:
  statisticstest:
    build:
      context: ../ 
      dockerfile: nts/Dockerfile-StatisticsTest
    image: "<repo>/<name>:1.0"
    secrets:
      - docker-user-pass
secrets:
  docker-user-pass:
    external: true

While running kompose up I'm getting the desired Your application has been deployed to Kubernetes.
But when describing the pods, I am getting:

screenshot from 2019-02-04 12-35-32

As you can see, I am failing there when the secret should be called.

Any help? Thanks :)

@tal47
Copy link
Author

tal47 commented Feb 4, 2019

OK can be closed, I have created a secret according to the documentation and it all went well :)

@tal47 tal47 closed this as completed Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant