You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having trouble with using restish inside a docker container.
My dockerfile creates a user 'cli-user', unzips the restish code into /user/local/bin and adds an apis.json and api spc in the /home/cli-user/.restish folder
when I run my container as the cli-user, and run restish list I see this error:
**_panic: open /home/cli-user/.restish/cache.json: permission denied
when I run my container as an admin and run restish list I get this error: Caught error: Get "https://list": dial tcp: lookup list on 192.168.65.1:53: no such host
Please let me know what I can do to fix these issues. What permissions is 'cli-user missing'?
What is trying to be done on 192.168.65.1:53 ?? Do I need to make changes to my docker network
The text was updated successfully, but these errors were encountered:
I fixed the permission error with a simple chmod on the .restish folder.
The latest is that when I try run inside of a docker container, the -H flag to pass the access token doesn't seem to be working.
For example this command works for me out side of docker and I get a list of client records:
Found the issue - the latest published build (0.7) does not have the fix for the -H issue. Also needed to make sure docker had a linux x86 build and not my local osx build
I'm having trouble with using restish inside a docker container.
My dockerfile creates a user 'cli-user', unzips the restish code into /user/local/bin and adds an apis.json and api spc in the /home/cli-user/.restish folder
when I run my container as the cli-user, and run
restish list
I see this error:**_panic: open /home/cli-user/.restish/cache.json: permission denied
goroutine 1 [running]:
github.com/danielgtaylor/restish/cli.initCache(0xd3f496, 0x7)
/home/runner/work/restish/restish/cli/cli.go:393 +0x483
github.com/danielgtaylor/restish/cli.Init(0xd3f496, 0x7, 0xf28444, 0x5)
/home/runner/work/restish/restish/cli/cli.go:101 +0x73
main.main()
/home/runner/work/restish/restish/main.go:14 +0x52_**
when I run my container as an admin and run
restish list
I get this error:Caught error: Get "https://list": dial tcp: lookup list on 192.168.65.1:53: no such host
Please let me know what I can do to fix these issues. What permissions is 'cli-user missing'?
What is trying to be done on 192.168.65.1:53 ?? Do I need to make changes to my docker network
The text was updated successfully, but these errors were encountered: