Coder CLI in docker
Hi, how i can create first template when I'm using coder oss in docker? Inside the docker I can't, this same in system (ubuntu).
26 Replies
The Quickstart instructions are here, should help you get started: https://coder.com/docs/coder-oss/latest/quickstart
Quickstart - Coder OSS main docs
Create your first template and workspace
i put everything in docker (docker-compose) and i dont have cli in my machine. In quickstart i need to run commands, but i cant. When i'm in docker i have logs stream
You can install the Coder CLI on your machine e.g. via the install script: https://coder.com/docs/coder-oss/latest/install/install.sh
Install script - Coder OSS main docs
One-line install script for macOS and Linux.
i need it when i using docker?
Are you not planning on using e.g. SSH to SSH into workspaces later on?
no
Ok, well you could just exec into your Docker container and run the coder commands from there.
oh wait, did it will allow me to use terminal in vsc?
Depends if you're using VSCode or
code-server
in browser. For VSCode with remote extensions you'll need the coder binary.i want to use code-server for it
It has a built-in terminal you can use. You can also use the separate Web Terminal (available in Coder webUI).
okay, i have a other question, because i dont know if i do it right. Does coder oss is something like "manager to code-server"?
Nah, running
code-server
is just something you can do with Coder OSS. The sky's the limit with regards to what else you can do (or rather, anything you can dream up to do in Terraform).okay, so i think i'm want still oss
You could open up a shell or give the full path (
/opt/coder
IIRC)how i can open shell? /bin/bash dont work
if i do not detached i have logs stream
you should just install coder on your personal machine and manage from there
because it's probably not present
are you using a reverse-proxy?
yes, nginx but now im connecting via ip and unlocked port
Okay
/bin/sh
is usually always present/opt/coder
remember to set CODER_ACCESS_URL to the external facing URL
I set coder_access_url to facing url, in command i use server ip but still dont work