Is there a way to use zed client on a
# spicedb
t
Is there a way to use zed client on a docker container on a windows machine?
v
there is a zed docker container: https://hub.docker.com/r/authzed/zed
t
Thanks @vroldanbet Sorry but I am a little new with docker. I am trying to connect to a spicedb local container that is already running. I am trying to connect with that container using docker command. docker run -it --link 98c2a8ef9e3b --net 35cf538a-3010-4b6a-909b-d4d676d19a13 -p 8080:8080 authzed/zed context set local-spicedb localhost:8080 but I am getting this error Setting the environment variable **`ZED_KEYRING_PASSWORD` to your password will skip prompts ** Anything that I am doing wrong? can I make this container running? the entrypoint of this image is zed command so I am not sure how to keep this container running.
v
you just have to hit enter 2 times
Copy code
docker run -it --entrypoint /bin/sh authzed/zed:latest-debug
/ $ zed context set local-spicedb localhost:8080 token
Setting the environment variable `ZED_KEYRING_PASSWORD` to your password will skip prompts
Keyring file does not already exist
Enter a new passphrase:
Setting the environment variable `ZED_KEYRING_PASSWORD` to your password will skip prompts
Enter passphrase to unlock zed keyring:
/ $ zed context list
Setting the environment variable `ZED_KEYRING_PASSWORD` to your password will skip prompts
Enter passphrase to unlock zed keyring:
CURRENT    NAME             ENDPOINT          TOKEN         TLS CERT
   ✓       local-spicedb    localhost:8080    <redacted>    system
`
this worked for me
@jzelinskie is there a way to skip that iteractive prompt?
t
this worked. I added one thing. Instead of hitting enter 2 times we can add
export ZED_KEYRING_PASSWORD=
it will set the password as blank and it won't prompt for password again
connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:8080: connect: connection refused"
Now I am getting this error when I am trying to read the schema 🤐
any suggestions
v
well if you are talking from one container to another, chances are you haven't set up the networking properly. Also 8080 is not the gRPC port by default, it's 50051
t
Cool Let me try this. I have made sure that the network is same. Let me change the port and try
@vroldanbet - You are a true guide. Thanks a ton. You solved my problems.