Sign inSign up

satlus/code-server

By satlus

Updated over 7 years ago

Image
0

253

satlus/code-server repository overview

A fork of codercom/code-server for non-root UID support

This is based off of my fork of code server, with an an open PR here:

This container is used to test changes in our environment as we receive feedback. I'll delete this repository if/when the PR is accepted.

Usage

From the README

Run as Non-root user dynamically mapped at runtime in docker You can configure code server to run as a UID:GID of your choice. This uses the boxboat/fixuid utility to dynamically remap the coder uid/gid at runtime. This is especially useful in environments where UIDs change, affect volume mount permissions, and process ownership. You can enable this feature easily with env variables, and the docker -u cli flag.

WARNING: there are some concerns around security with this approach, ensure you understand the implications

Example 1: Run as the host UID:GID, by setting the FIXUID docker env var

docker run -it -p 127.0.0.1:8443:8443 \
-v "${PWD}/code-server:/home/coder" \
-u $(id -u):$(id -g) \
-e FIXUID=y \
satlus/code-server /home/coder/project --allow-http --no-auth

Example 2: Same as above, but disable the fixuid warning message

docker run -it -p 127.0.0.1:8443:8443 \
-v "${PWD}/code-server:/home/coder" \
-u $(id -u):$(id -g) \
-e FIXUID=y \
-e FIXUID_QUIET=y \
satlus/code-server /home/coder/project --allow-http --no-auth

Tag summary

Content type

Image

Digest

Size

141 MB

Last updated

over 7 years ago

docker pull satlus/code-server