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: [INFO] Error: No /configs/auth.json #4920

Closed
Metis77 opened this issue Aug 30, 2016 · 6 comments
Closed

Docker: [INFO] Error: No /configs/auth.json #4920

Metis77 opened this issue Aug 30, 2016 · 6 comments

Comments

@Metis77
Copy link

Metis77 commented Aug 30, 2016

after updating to 56339fb and rebuilding the docker image, the new auth.json is not found.
config.json & auth.json have been recreated from the examples and are valid json.

@Metis77 Metis77 changed the title [INFO] Error: No /configs/auth.json Docker: [INFO] Error: No /configs/auth.json Aug 30, 2016
@th3w4y
Copy link
Contributor

th3w4y commented Aug 30, 2016

what is your docker run command?

can you also provide the output of:

docker inspect --format='{{.Created}} {{.ContainerConfig.Labels}}' container_id_or_tag_name

@Metis77
Copy link
Author

Metis77 commented Aug 30, 2016

I took the one from the docs:
docker run --name=bot1-pokego --rm -it -v $(pwd)/configs/config.json:/usr/src/app/configs/config.json pokemongo-bot

docker inspect --format='{{.Created}} {{.ContainerConfig.Labels}}' pokemongo-bot
gets:
2016-08-30T07:12:35.525133477Z map[build_branch:dev build_repo:PokemonGoF/PokemonGo-Bot]

@th3w4y
Copy link
Contributor

th3w4y commented Aug 30, 2016

try: -v $(pwd)/configs:/usr/src/app/configs

that will mount the whole dir and the bot will find both config.json and
auth.json

I took the one from the docs:
docker run --name=bot1-pokego --rm -it -v
$(pwd)/configs/config.json:/usr/src/app/configs/config.json pokemongo-bot

docker inspect --format='{{.Created}} {{.ContainerConfig.Labels}}'
pokemongo-bot
gets:
2016-08-30T07:12:35.525133477Z map[build_branch:dev
build_repo:PokemonGoF/PokemonGo-Bot]

@Metis77
Copy link
Author

Metis77 commented Aug 30, 2016

indeed, that works perfect:
docker run --name=bot1-pokego --rm -it -v $(pwd)/configs:/usr/src/app/configs pokemongo-bot

maybe you could update the docker docs

@th3w4y
Copy link
Contributor

th3w4y commented Aug 30, 2016

@Metis77 PR opened #4922

@mjmadsen
Copy link
Contributor

Merged

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

3 participants