cli icon indicating copy to clipboard operation
cli copied to clipboard

Problem running pusher-cli from inside a docker container

Open igorGevaerd opened this issue 3 years ago • 4 comments

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.

igorGevaerd avatar Jun 17 '21 19:06 igorGevaerd

By default the CLI will look for the config file in the current user's folder. Does the /root folder exist in your container?

benw-pusher avatar Jun 18 '21 10:06 benw-pusher

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.

benw-pusher avatar Jun 18 '21 11:06 benw-pusher

Great! Thanks for the reply.

If I could help in something, just let me know.

igorGevaerd avatar Jun 18 '21 13:06 igorGevaerd

Any update? Running into this same issue almost a year later.

jehoshua02 avatar Apr 29 '22 21:04 jehoshua02