I'm getting permission issues when creating a workspace

Hey guys, I was able to create a workspace before with an unedited version of docker-code-server (https://github.com/sharkymark/v2-templates/tree/main/docker-code-server). I modified it slightly following these doc for docker in workspace (https://coder.com/docs/v2/latest/templates/docker-in-workspaces) , I pasted the main.tf here https://pastebin.com/e5NC2cTm to view.

The error I'm getting in the workspace log:
time="2023-06-22T13:11:01.394685505Z" level=info msg="API listen on /var/run/docker.sock"
Ubuntu 20.04.6 LTS
Installing v4.14.0 of the amd64 deb package from GitHub.
+ mkdir -p ~/.cache/code-server
mkdir: cannot create directory '/home/coder/.cache': Permission denied
folder_name: python_commissions
repo_name: sharkymark
Cloning git repo...
fatal: could not create work tree dir 'python_commissions': Permission denied
Use docker inside containerized templates
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Was this page helpful?