Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install VS Code extensions using code-server?

Here's my Dockerfile:

FROM linuxserver/code-server:latest

[..]

As you can see, I'm using an image that has code-server installed. and it works just fine. When I run it, I can see VS Code via localhost:8443.

However, when I try to install VS Code extensions there, I receive errors (such as HTTP 403 errors).

How can I fix it?

like image 683
tayebe pourmand Avatar asked Jul 20 '26 00:07

tayebe pourmand


1 Answers

Try this.

RUN /app/code-server/bin/code-server \
    --install-extension EXTENSION_ID_1 \
    --install-extension EXTENSION_ID_2 \
    --install-extension EXTENSION_ID_3 \
    --extensions-dir /config/extensions
like image 171
Jeongtae Kim Avatar answered Jul 21 '26 18:07

Jeongtae Kim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!