tmate-io / tmate-websocket

16 stars 13 forks source link

.erlang.cookie missing #1

Open xeniter opened 4 years ago

xeniter commented 4 years ago

when i start the image with

sudo docker run --network host -it tmate/tmate-websocket:latest

i get following error:

a secret cookie must be provided in one of the following ways:\n - with vm.args using the -setcookie parameter,\n or\n by writing the cookie to '/home/app/.erlang.cookie', with permissions set to 0400

any idea for what i need this erlang.cookie or how to properly create it?

nviennot commented 4 years ago

I highly recommend using tilt to run the infrastructure. Follow the Development Environment section on https://tmate.io/

tmate doesn't use the erlang node-to-node communication, so the cookie is not used. You should be fine without it. If you still want to have it, this is how it's done: https://github.com/tmate-io/tmate-kube/blob/master/prod/session.yaml#L112