docker.io/linuxserver/code-server:4.106.2 linux/amd64

docker.io/linuxserver/code-server:4.106.2 - 国内下载镜像源 浏览次数:14 安全受验证的发布者-linuxserver

这是一个基于Code-Server的Docker镜像,由LinuxServer团队维护。Code-Server是一个开源项目,它允许您在浏览器中运行VS Code。该镜像提供了一种方便快捷的方式来运行和管理Code-Server,无需自行配置复杂的运行环境。

源镜像 docker.io/linuxserver/code-server:4.106.2
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/linuxserver/code-server:4.106.2
镜像ID sha256:658bcbe351c754fe923fd3895b04aecd064e06d0eee86465697378485c3d1b88
镜像TAG 4.106.2
大小 664.84MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD
启动入口 /init
工作目录 /
OS/平台 linux/amd64
浏览量 14 次
贡献者
镜像创建 2025-11-20T02:23:44.801440906Z
同步时间 2025-11-29 19:01
更新时间 2025-11-30 01:32
开放端口
8443/tcp
环境变量
PATH=/lsiopy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin HOME=/config LANGUAGE=en_US.UTF-8 LANG=en_US.UTF-8 TERM=xterm S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 S6_VERBOSITY=1 S6_STAGE2_HOOK=/docker-mods VIRTUAL_ENV=/lsiopy LSIO_FIRST_PARTY=true
镜像标签
Linuxserver.io version:- 4.106.2-ls306 Build-date:- 2025-11-20T02:22:08+00:00: build_version aptalca: maintainer linuxserver.io: org.opencontainers.image.authors 2025-11-20T02:22:08+00:00: org.opencontainers.image.created [Code-server](https://coder.com) is VS Code running on a remote server, accessible through the browser. - Code on your Chromebook, tablet, and laptop with a consistent dev environment. - If you have a Windows or Mac workstation, more easily develop for Linux. - Take advantage of large cloud servers to speed up tests, compilations, downloads, and more. - Preserve battery life when you're on the go. - All intensive computation runs on your server. - You're no longer running excess instances of Chrome. : org.opencontainers.image.description https://docs.linuxserver.io/images/docker-code-server: org.opencontainers.image.documentation GPL-3.0-only: org.opencontainers.image.licenses 0ffc04049822301817987f7250e95dd8ae8e79ff: org.opencontainers.image.ref.name 0ffc04049822301817987f7250e95dd8ae8e79ff: org.opencontainers.image.revision https://github.com/linuxserver/docker-code-server: org.opencontainers.image.source Code-server: org.opencontainers.image.title https://github.com/linuxserver/docker-code-server/packages: org.opencontainers.image.url linuxserver.io: org.opencontainers.image.vendor 4.106.2-ls306: org.opencontainers.image.version

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/linuxserver/code-server:4.106.2
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/linuxserver/code-server:4.106.2  docker.io/linuxserver/code-server:4.106.2

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/linuxserver/code-server:4.106.2
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/linuxserver/code-server:4.106.2  docker.io/linuxserver/code-server:4.106.2

Shell快速替换命令

sed -i 's#linuxserver/code-server:4.106.2#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/linuxserver/code-server:4.106.2#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/linuxserver/code-server:4.106.2 && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/linuxserver/code-server:4.106.2  docker.io/linuxserver/code-server:4.106.2'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/linuxserver/code-server:4.106.2 && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/linuxserver/code-server:4.106.2  docker.io/linuxserver/code-server:4.106.2'

镜像构建历史


# 2025-11-20 10:23:44  0.00B 声明容器运行时监听的端口
EXPOSE [8443/tcp]
                        
# 2025-11-20 10:23:44  3.53KB 复制新文件或目录到容器中
COPY /root / # buildkit
                        
# 2025-11-20 10:23:44  542.14MB 执行命令并创建新的镜像层
RUN |4 BUILD_DATE=2025-11-20T02:22:08+00:00 VERSION=4.106.2-ls306 CODE_RELEASE=4.106.2 DEBIAN_FRONTEND=noninteractive /bin/sh -c echo "**** install runtime dependencies ****" &&   apt-get update &&   apt-get install -y     git     libatomic1     nano     net-tools     sudo &&   echo "**** install code-server ****" &&   if [ -z ${CODE_RELEASE+x} ]; then     CODE_RELEASE=$(curl -sX GET https://api.github.com/repos/coder/code-server/releases/latest       | awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^v||');   fi &&   mkdir -p /app/code-server &&   curl -o     /tmp/code-server.tar.gz -L     "https://github.com/coder/code-server/releases/download/v${CODE_RELEASE}/code-server-${CODE_RELEASE}-linux-amd64.tar.gz" &&   tar xf /tmp/code-server.tar.gz -C     /app/code-server --strip-components=1 &&   printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version &&   echo "**** clean up ****" &&   apt-get clean &&   rm -rf     /config/*     /tmp/*     /var/lib/apt/lists/*     /var/tmp/* # buildkit
                        
# 2025-11-20 10:23:44  0.00B 设置环境变量 HOME
ENV HOME=/config
                        
# 2025-11-20 10:23:44  0.00B 定义构建参数
ARG DEBIAN_FRONTEND=noninteractive
                        
# 2025-11-20 10:23:44  0.00B 添加元数据标签
LABEL maintainer=aptalca
                        
# 2025-11-20 10:23:44  0.00B 添加元数据标签
LABEL build_version=Linuxserver.io version:- 4.106.2-ls306 Build-date:- 2025-11-20T02:22:08+00:00
                        
# 2025-11-20 10:23:44  0.00B 定义构建参数
ARG CODE_RELEASE=4.106.2
                        
# 2025-11-20 10:23:44  0.00B 定义构建参数
ARG VERSION=4.106.2-ls306
                        
# 2025-11-20 10:23:44  0.00B 定义构建参数
ARG BUILD_DATE=2025-11-20T02:22:08+00:00
                        
# 2025-11-20 10:23:44  0.00B 设置环境变量 LSIO_FIRST_PARTY
ENV LSIO_FIRST_PARTY=true
                        
# 2025-11-19 07:33:44  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/init"]
                        
# 2025-11-19 07:33:44  9.45KB 复制新文件或目录到容器中
COPY root/ / # buildkit
                        
# 2025-11-19 07:33:44  39.50MB 执行命令并创建新的镜像层
RUN |7 BUILD_DATE=2025-11-18T23:31:59+00:00 VERSION=d9aadce2-ls55 MODS_VERSION=v3 PKG_INST_VERSION=v1 LSIOWN_VERSION=v1 WITHCONTENV_VERSION=v1 DEBIAN_FRONTEND=noninteractive /bin/sh -c echo "**** Ripped from Ubuntu Docker Logic ****" &&   rm -f /etc/apt/sources.list.d/ubuntu.sources &&   set -xe &&   echo '#!/bin/sh'     > /usr/sbin/policy-rc.d &&   echo 'exit 101'     >> /usr/sbin/policy-rc.d &&   chmod +x     /usr/sbin/policy-rc.d &&   dpkg-divert --local --rename --add /sbin/initctl &&   cp -a     /usr/sbin/policy-rc.d     /sbin/initctl &&   sed -i     's/^exit.*/exit 0/'     /sbin/initctl &&   echo 'force-unsafe-io'     > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup &&   echo 'DPkg::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };'     > /etc/apt/apt.conf.d/docker-clean &&   echo 'APT::Update::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };'     >> /etc/apt/apt.conf.d/docker-clean &&   echo 'Dir::Cache::pkgcache ""; Dir::Cache::srcpkgcache "";'     >> /etc/apt/apt.conf.d/docker-clean &&   echo 'Acquire::Languages "none";'     > /etc/apt/apt.conf.d/docker-no-languages &&   echo 'Acquire::GzipIndexes "true"; Acquire::CompressionTypes::Order:: "gz";'     > /etc/apt/apt.conf.d/docker-gzip-indexes &&   echo 'Apt::AutoRemove::SuggestsImportant "false";'     > /etc/apt/apt.conf.d/docker-autoremove-suggests &&   mkdir -p /run/systemd &&   echo 'docker'     > /run/systemd/container &&   echo "**** install apt-utils and locales ****" &&   apt-get update &&   apt-get upgrade -y &&   apt-get install -y     apt-utils     locales &&   echo "**** install packages ****" &&   apt-get install -y     catatonit     cron     curl     gnupg     jq     netcat-openbsd     systemd-standalone-sysusers     tzdata &&   echo "**** generate locale ****" &&   locale-gen en_US.UTF-8 &&   echo "**** create abc user and make our folders ****" &&   useradd -u 911 -U -d /config -s /bin/false abc &&   usermod -G users abc &&   mkdir -p     /app     /config     /defaults     /lsiopy &&   echo "**** cleanup ****" &&   userdel ubuntu &&   apt-get autoremove &&   apt-get clean &&   rm -rf     /tmp/*     /var/lib/apt/lists/*     /var/tmp/*     /var/log/* # buildkit
                        
# 2025-11-19 07:33:19  836.00B 复制新文件或目录到容器中
COPY sources.list /etc/apt/ # buildkit
                        
# 2025-11-19 07:33:19  0.00B 设置环境变量 HOME LANGUAGE LANG TERM S6_CMD_WAIT_FOR_SERVICES_MAXTIME S6_VERBOSITY S6_STAGE2_HOOK VIRTUAL_ENV PATH
ENV HOME=/root LANGUAGE=en_US.UTF-8 LANG=en_US.UTF-8 TERM=xterm S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 S6_VERBOSITY=1 S6_STAGE2_HOOK=/docker-mods VIRTUAL_ENV=/lsiopy PATH=/lsiopy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2025-11-19 07:33:19  0.00B 定义构建参数
ARG DEBIAN_FRONTEND=noninteractive
                        
# 2025-11-19 07:33:19  478.00B 复制文件或目录到容器中
ADD --chmod=755 https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/with-contenv.v1 /usr/bin/with-contenv # buildkit
                        
# 2025-11-19 07:33:19  945.00B 复制文件或目录到容器中
ADD --chmod=755 https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/lsiown.v1 /usr/bin/lsiown # buildkit
                        
# 2025-11-19 07:33:19  4.18KB 复制文件或目录到容器中
ADD --chmod=755 https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/package-install.v1 /etc/s6-overlay/s6-rc.d/init-mods-package-install/run # buildkit
                        
# 2025-11-19 07:33:19  31.19KB 复制文件或目录到容器中
ADD --chmod=755 https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.v3 /docker-mods # buildkit
                        
# 2025-11-19 07:33:19  0.00B 添加元数据标签
LABEL maintainer=TheLamer
                        
# 2025-11-19 07:33:19  0.00B 添加元数据标签
LABEL build_version=Linuxserver.io version:- d9aadce2-ls55 Build-date:- 2025-11-18T23:31:59+00:00
                        
# 2025-11-19 07:33:19  0.00B 定义构建参数
ARG WITHCONTENV_VERSION=v1
                        
# 2025-11-19 07:33:19  0.00B 定义构建参数
ARG LSIOWN_VERSION=v1
                        
# 2025-11-19 07:33:19  0.00B 定义构建参数
ARG PKG_INST_VERSION=v1
                        
# 2025-11-19 07:33:19  0.00B 定义构建参数
ARG MODS_VERSION=v3
                        
# 2025-11-19 07:33:19  0.00B 定义构建参数
ARG VERSION=d9aadce2-ls55
                        
# 2025-11-19 07:33:19  0.00B 定义构建参数
ARG BUILD_DATE=2025-11-18T23:31:59+00:00
                        
# 2025-11-19 07:33:19  83.15MB 复制新文件或目录到容器中
COPY /root-out/ / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:658bcbe351c754fe923fd3895b04aecd064e06d0eee86465697378485c3d1b88",
    "RepoTags": [
        "linuxserver/code-server:4.106.2",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/linuxserver/code-server:4.106.2"
    ],
    "RepoDigests": [
        "linuxserver/code-server@sha256:a98afdbcb59559f11e5e8df284062e55da1076b2e470e13db4aae133ea82bad0",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/linuxserver/code-server@sha256:ac05bc4b397fe40f4570263fd86749d30dfc8e00af9b462f7f59989d8cbdbc6d"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2025-11-20T02:23:44.801440906Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "8443/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/lsiopy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "HOME=/config",
            "LANGUAGE=en_US.UTF-8",
            "LANG=en_US.UTF-8",
            "TERM=xterm",
            "S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0",
            "S6_VERBOSITY=1",
            "S6_STAGE2_HOOK=/docker-mods",
            "VIRTUAL_ENV=/lsiopy",
            "LSIO_FIRST_PARTY=true"
        ],
        "Cmd": null,
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/",
        "Entrypoint": [
            "/init"
        ],
        "OnBuild": null,
        "Labels": {
            "build_version": "Linuxserver.io version:- 4.106.2-ls306 Build-date:- 2025-11-20T02:22:08+00:00",
            "maintainer": "aptalca",
            "org.opencontainers.image.authors": "linuxserver.io",
            "org.opencontainers.image.created": "2025-11-20T02:22:08+00:00",
            "org.opencontainers.image.description": "[Code-server](https://coder.com) is VS Code running on a remote server, accessible through the browser.  - Code on your Chromebook, tablet, and laptop with a consistent dev environment.  - If you have a Windows or Mac workstation, more easily develop for Linux.  - Take advantage of large cloud servers to speed up tests, compilations, downloads, and more.  - Preserve battery life when you're on the go.  - All intensive computation runs on your server.  - You're no longer running excess instances of Chrome.  ",
            "org.opencontainers.image.documentation": "https://docs.linuxserver.io/images/docker-code-server",
            "org.opencontainers.image.licenses": "GPL-3.0-only",
            "org.opencontainers.image.ref.name": "0ffc04049822301817987f7250e95dd8ae8e79ff",
            "org.opencontainers.image.revision": "0ffc04049822301817987f7250e95dd8ae8e79ff",
            "org.opencontainers.image.source": "https://github.com/linuxserver/docker-code-server",
            "org.opencontainers.image.title": "Code-server",
            "org.opencontainers.image.url": "https://github.com/linuxserver/docker-code-server/packages",
            "org.opencontainers.image.vendor": "linuxserver.io",
            "org.opencontainers.image.version": "4.106.2-ls306"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 664842938,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/01c762c8733c7bf27ad40ff1091e2ffc95f91c2d1a9b8961101b82ca83713f58/diff:/var/lib/docker/overlay2/5872d244761b8791167ad1f6abe3fd490db74efa27d81edc0540d6ff5efd6c35/diff:/var/lib/docker/overlay2/05acefb966cf385ff20172e97eff9e4ecd615e9da1e60750b1e0c60a940109ab/diff:/var/lib/docker/overlay2/7333c5d57367bf78531f31f317dffc842f4d50af0951febc380492c8dc6f78f1/diff:/var/lib/docker/overlay2/de0a755881b43ad6c8abe3266194f8e3f648756920beb4bbc449cf8516326990/diff:/var/lib/docker/overlay2/efec8e2d507d735e233414b3d7126b82b3fa664d5440f433780e1b81c91b6442/diff:/var/lib/docker/overlay2/ac35767e79f9bf8aa098a05eb3aae547040d41fcb70c5f1a4918405a4d391759/diff:/var/lib/docker/overlay2/a6efcbbb28883a5c617e1b2a4826d49eff14e0ab53cb7476b000cb8e0d337d49/diff:/var/lib/docker/overlay2/49ab3fe6a1de00d041f52d9d1f8f0adf806d5a87e446d52a2cbff0b1d10b827a/diff",
            "MergedDir": "/var/lib/docker/overlay2/c51933fdd35b6dc25bcc70028c041d39158e6eb79d09d0c00f4ea1e9b0f5b3fd/merged",
            "UpperDir": "/var/lib/docker/overlay2/c51933fdd35b6dc25bcc70028c041d39158e6eb79d09d0c00f4ea1e9b0f5b3fd/diff",
            "WorkDir": "/var/lib/docker/overlay2/c51933fdd35b6dc25bcc70028c041d39158e6eb79d09d0c00f4ea1e9b0f5b3fd/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:1277ba8c1394a81452c229065bbeb36f693adb87b13fd627e61d3d3a19ea22e9",
            "sha256:4237b4abe0c583f84633de1da55c1e716dbf60660634932965955c149a90929c",
            "sha256:7416b3946ab31d70d7b1406fe443b7b805ac7f4fe062b809574d73ed71f20e40",
            "sha256:b132cc58d411037b0dcc950480aee1d0003f8e4f86d020efaec7b58664ab6578",
            "sha256:49cc0fda0e1823e10a3afe42982e1c117e78a164ec5559c572a9bdb9eaaad14a",
            "sha256:5ee92ce0ab6c6d7a894f5c10bfee154977be85c155b1523661e397588e538a94",
            "sha256:123a2d573e5746021080ba5a006b6c25dea77e5b3bffa76db81b803335498fd1",
            "sha256:2d4aa74f28b16f21340b1f2cc148ee64e9a236d09106ebbc2cee4d06ec6e1b91",
            "sha256:3849b7a0bd4c57b7b4da9dbfff060f77b9655c7e9dd170ad49e7e12c9cf29994",
            "sha256:9cb866de85267b3a1f551c6709f4a114ac30ab5560e56186876bbbc1637a7fc1"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-11-29T19:00:42.606295992+08:00"
    }
}

更多版本

docker.io/linuxserver/code-server:latest

linux/amd64 docker.io621.76MB2024-12-23 10:53
646

docker.io/linuxserver/code-server:4.101.2

linux/amd64 docker.io620.29MB2025-07-12 10:02
307

docker.io/linuxserver/code-server:latest

linux/arm64 docker.io677.61MB2025-08-28 02:15
123

docker.io/linuxserver/code-server:4.106.2

linux/amd64 docker.io664.84MB2025-11-29 19:01
13

docker.io/linuxserver/code-server:4.106.2

linux/arm64 docker.io692.97MB2025-11-29 19:05
10