Sign inSign up

tnk4on/code-server

By tnk4on

Updated almost 5 years ago

code-server using UBI8 for base image

Image
0

1.3K

tnk4on/code-server repository overview

Code-server: Container Image

Dowonload ---> [Quay.io] or [Docker.io]

Current Version: code-server:v3.12.0

GitHub Repository: https://github.com/tnk4on/code-server

  • This repository assumes the use of Podman and Buildah. If you are using Docker, please read as appropriate.

Description

  • code-server is running VS Code on any machine anywhere and you can access it in the browser.

About container images

This container image has multiple architectures.

  • tnk4on/code-server:latest
    • tnk4on/code-server:amd64-> linux/amd64
    • tnk4on/code-server:arm64-> linux/arm64
Features
  • Base Image: ubi8/ubi
  • Run as a non-root user. User: coder Created.

How to use

First, create directories for code-server.

$ mkdir -p code-server/project code-server/local code-server/config
$ tree
.
└── code-server
    ├── config
    ├── local
    └── project

Go to the code-server directory and run the container.

cd code-server
podman run -d --name code-server \
-v ./project:/home/coder/project:rw,z \
-v ./local:/home/coder/.local:rw,z \
-v ./config:/home/coder/.config:rw,z \
--userns=keep-id \
-e PASSWORD=your-pass-word \
-e TZ=Asia/Tokyo \
-p 8080:8080 \
tnk4on/code-server

Note: Use --userns=keep-id because it will be run by a user with a different UID/GID in the container.

Use .bashrc, .gitconfig, .git-credentials

cd code-server
podman run -d --name code-server \
-v ./project:/home/coder/project:rw,z \
-v ./local:/home/coder/.local:rw,z \
-v ./config:/home/coder/.config:rw,z \
-v ./bashrc:/home/coder/.bashrc:rw,z \
-v ~/.gitconfig:/home/coder/.gitconfig:ro,z \
-v ~/.git-credentials:/home/coder/.git-credentials:ro,z \
--userns=keep-id \
-e PASSWORD=your-pass-word \
-e TZ=Asia/Tokyo \
-p 8080:8080 \
tnk4on/code-server

Tag summary

Content type

Image

Digest

Size

333.8 MB

Last updated

almost 5 years ago

docker pull tnk4on/code-server