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

docker/run.bash parameter misused #64

Open
RKAnonymous opened this issue May 31, 2024 · 1 comment
Open

docker/run.bash parameter misused #64

RKAnonymous opened this issue May 31, 2024 · 1 comment

Comments

@RKAnonymous
Copy link

General Question

I cloned the repo and executed commands one-by-one as it was written in readme file.

Linux: Ubuntu 20.04

  1. create_image.bash x86_ubuntu_20 local_1.0.0
    x86_ubuntu_20 for Ubuntu version as it was indicated.
    1.0.0 for my local valkka image.

But problem comes here. When I run
run.bash x86_ubuntu_20 (Why I put x86_ubuntu_20? Because there was written [TAG] in all places and I thought it should be the same as the previous command)

And it raises error:
Unable to find image 'valkka:x86_ubuntu_20' locally docker: Error response from daemon: pull access denied for valkka, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. See 'docker run --help'.

What I realized here is run.bash script is using [TAG] parameter as valkka image tag ...-it valkka:$1 /bin/bash, but not a ubuntu image tag.
I suggest, in the 4th step [TAG] parameter somehow should differ from the ones used in other commands. For example: [VALKKA_TAG], if $2 parameter was provided in the 3th step.

I did not check the case that $2 is empty though.

Thank you.

@RKAnonymous
Copy link
Author

Hi.

This is my workaround.

...
### Create Image
./create_image.bash [OS_TAG] [IMAGE_TAG]

### Install the libValkka
./run.bash [IMAGE_TAG]
...

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