cli
cli copied to clipboard
Problem running pusher-cli from inside a docker container
Issue:
Running pusher from inside a docker image is facing the following problem:
root@83c474e59da6:/tools# ./pusher
Can't get your home directory.
The image used:
-
FROM ubuntu:20.04
User:
-
root
Pusher-cli version:
-
v0.13
Binary used:
Expected behaviour:
root@asdfasdf:/tools# ./pusher
A CLI for your Pusher account. Find out more at https://pusher.com
Usage:
pusher [command]
Available Commands:
channels Commands related to the Channels product
help Help about any command
login Enter and store Pusher API key
logout Remove Pusher account credentials from this computer
version Lists the version of Pusher CLI
Flags:
-h, --help help for pusher
Use "pusher [command] --help" for more information about a command.
By default the CLI will look for the config file in the current user's folder. Does the /root folder exist in your container?
Ignore the above, I think this could actually be a bug. We'll look into it and I'll let you know when a fix is published.
Great! Thanks for the reply.
If I could help in something, just let me know.
Any update? Running into this same issue almost a year later.