Hey all I just finished installing coder
# general
j
Hey all! I just finished installing coder on an Ubuntu server. I already haven an application running on 3000/tcp. Is there a way to specify an alternate port when running 'coder server'?
k
Yup! Are you running with systemd or the command line?
j
With the CLI right now - I'd prefer to use systemd.
Looks like running 'coder server --help' provides tremendous insight! 🙂
k
Wonderful!
j
On a slightly related note.... I tried going the route of using the "Run Coder with the built-in database (quick)" (https://coder.com/docs/v2/latest/install/docker#run-coder-with-the-built-in-database-quick) option and got an error about not being able to create a directory after the docker run command.
docker run --rm -it -v $CODER_DATA:/home/coder/.config -v /var/run/docker.sock:/var/run/docker.sock --group-add $DOCKER_GROUP ghcr.io/coder/coder:latest Unable to find image 'ghcr.io/coder/coder:latest' locally latest: Pulling from coder/coder 8a49fdb3b6a5: Pull complete 4cdcfa56a32c: Pull complete bd9ddc54bea9: Pull complete 5a58ed423ad2: Pull complete Digest: sha256:94fe4bc51c75b4f168261ccdc4b648d9131033ff02ba1f1f77d803b51a93ccc6 Status: Downloaded newer image for ghcr.io/coder/coder:latest Coder v0.23.4+97b4743 - Your Self-Hosted Remote Development Platform Started HTTP listener at http://127.0.0.1:3000 Using built-in PostgreSQL (/home/coder/.config/coderv2/postgres) mkdir /home/coder/.config/coderv2: permission denied
It looks like the documentation assumes a user called 'coder' is already created with the home directory /home/coder. I even tried creating an account called coder, added the user to sudo and docker groups, logging in as that user and running the recommended commands.... Same error.
k
Nah, it assumes that
/home/coder
exists inside the container, not on your host!
j
OK - so then the container should be running even with that error? It's not.