To run docker container using docker compose docker-compose up
.
and if you want to update password to hased password, first create a new password using command echo -n "password" | argon2 passphrase -e
and then copy the hashed password to config.yml in ./.config/code-server/config.yaml
and change password
to hashed-password
like this
bind-addr: 127.0.0.1:8080
auth: password
hashed-password: "$argon2i$v=19$m=4096,t=3,p=1$cGFzc3BocmFzZQ$okkrFbM7upiCdoRdy3EWd7PXPdwXgN4lCaTY9MupgYo"
cert: false
if your run docker-compose
with sudo, make folder .local
, .config
, and project
in current directory and change the owner to your current user, like sudo chown -R $USER:$USER .local
etc.
Unfortunately docker-compose up could not start. Firing up with root user.
Starting vscode ... done
Attaching to vscode
vscode | [2022-03-20T11:14:47.163Z] error EACCES: permission denied, mkdir '/home/coder/.config/code-server'
I tried doing chown, no luck. I also tried privileged: true - still no luck.
Should I create separate user for this or something?