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

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

温馨提示:此镜像为latest tag镜像,本站无法保证此版本为最新镜像

```html

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

```
源镜像 docker.io/linuxserver/code-server:latest
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/linuxserver/code-server:latest
镜像ID sha256:5f820d192691c97caad32b76acfc5a725475ab92e6b839d6f337dda8d65b381e
镜像TAG latest
大小 621.76MB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD
启动入口 /init
工作目录 /
OS/平台 linux/amd64
浏览量 63 次
贡献者
镜像创建 2024-12-20T22:48:21.644570696Z
同步时间 2024-12-23 10:53
更新时间 2025-01-18 09:59
开放端口
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.96.2-ls248 Build-date:- 2024-12-20T22:44:41+00:00: build_version aptalca: maintainer linuxserver.io: org.opencontainers.image.authors 2024-12-20T22:44:41+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 2f251a6467bf19c89e6661279530ce2d8e10df9c: org.opencontainers.image.ref.name 2f251a6467bf19c89e6661279530ce2d8e10df9c: 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.96.2-ls248: org.opencontainers.image.version
镜像安全扫描 查看Trivy扫描报告

系统OS: ubuntu 24.04 扫描引擎: Trivy 扫描时间: 2024-12-23 10:55

低危漏洞:36 中危漏洞:20 高危漏洞:17 严重漏洞:4

Docker拉取命令 无权限下载?点我修复

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

Containerd拉取命令

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

Shell快速替换命令

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

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-12-21 06:48:21  0.00B 声明容器运行时监听的端口
EXPOSE map[8443/tcp:{}]
                        
# 2024-12-21 06:48:21  2.60KB 复制新文件或目录到容器中
COPY /root / # buildkit
                        
# 2024-12-21 06:48:20  499.10MB 执行命令并创建新的镜像层
RUN |4 BUILD_DATE=2024-12-20T22:44:41+00:00 VERSION=4.96.2-ls248 CODE_RELEASE=4.96.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
                        
# 2024-12-21 06:48:20  0.00B 设置环境变量 HOME
ENV HOME=/config
                        
# 2024-12-21 06:48:20  0.00B 定义构建参数
ARG DEBIAN_FRONTEND=noninteractive
                        
# 2024-12-21 06:48:20  0.00B 添加元数据标签
LABEL maintainer=aptalca
                        
# 2024-12-21 06:48:20  0.00B 添加元数据标签
LABEL build_version=Linuxserver.io version:- 4.96.2-ls248 Build-date:- 2024-12-20T22:44:41+00:00
                        
# 2024-12-21 06:48:20  0.00B 定义构建参数
ARG CODE_RELEASE=4.96.2
                        
# 2024-12-21 06:48:20  0.00B 定义构建参数
ARG VERSION=4.96.2-ls248
                        
# 2024-12-21 06:48:20  0.00B 定义构建参数
ARG BUILD_DATE=2024-12-20T22:44:41+00:00
                        
# 2024-12-21 06:48:20  0.00B 设置环境变量 LSIO_FIRST_PARTY
ENV LSIO_FIRST_PARTY=true
                        
# 2024-12-18 07:33:43  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/init"]
                        
# 2024-12-18 07:33:43  7.49KB 复制新文件或目录到容器中
COPY root/ / # buildkit
                        
# 2024-12-18 07:33:43  39.49MB 执行命令并创建新的镜像层
RUN |7 BUILD_DATE=2024-12-17T23:31:56+00:00 VERSION=f53cdef0-ls24 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
                        
# 2024-12-18 07:33:18  836.00B 复制新文件或目录到容器中
COPY sources.list /etc/apt/ # buildkit
                        
# 2024-12-18 07:33:18  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
                        
# 2024-12-18 07:33:18  0.00B 定义构建参数
ARG DEBIAN_FRONTEND=noninteractive
                        
# 2024-12-18 07:33:18  478.00B 复制文件或目录到容器中
ADD --chmod=755 https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/with-contenv.v1 /usr/bin/with-contenv # buildkit
                        
# 2024-12-18 07:33:18  945.00B 复制文件或目录到容器中
ADD --chmod=755 https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/lsiown.v1 /usr/bin/lsiown # buildkit
                        
# 2024-12-18 07:33:18  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
                        
# 2024-12-18 07:33:17  26.72KB 复制文件或目录到容器中
ADD --chmod=755 https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.v3 /docker-mods # buildkit
                        
# 2024-12-18 07:33:17  0.00B 添加元数据标签
LABEL maintainer=TheLamer
                        
# 2024-12-18 07:33:17  0.00B 添加元数据标签
LABEL build_version=Linuxserver.io version:- f53cdef0-ls24 Build-date:- 2024-12-17T23:31:56+00:00
                        
# 2024-12-18 07:33:17  0.00B 定义构建参数
ARG WITHCONTENV_VERSION=v1
                        
# 2024-12-18 07:33:17  0.00B 定义构建参数
ARG LSIOWN_VERSION=v1
                        
# 2024-12-18 07:33:17  0.00B 定义构建参数
ARG PKG_INST_VERSION=v1
                        
# 2024-12-18 07:33:17  0.00B 定义构建参数
ARG MODS_VERSION=v3
                        
# 2024-12-18 07:33:17  0.00B 定义构建参数
ARG VERSION=f53cdef0-ls24
                        
# 2024-12-18 07:33:17  0.00B 定义构建参数
ARG BUILD_DATE=2024-12-17T23:31:56+00:00
                        
# 2024-12-18 07:33:17  83.13MB 复制新文件或目录到容器中
COPY /root-out/ / # buildkit
                        
                    

镜像信息

{
    "Id": "sha256:5f820d192691c97caad32b76acfc5a725475ab92e6b839d6f337dda8d65b381e",
    "RepoTags": [
        "linuxserver/code-server:latest",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/linuxserver/code-server:latest"
    ],
    "RepoDigests": [
        "linuxserver/code-server@sha256:c181b7a2ae59940f276c89fd86cd4f220cdb87886d771b5becf3d4156b3c0bc1",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/linuxserver/code-server@sha256:98b7afe2abed8e76f33bafde1bebeed8ec55605f5c2ec523bb5ed8eac773864d"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-12-20T22:48:21.644570696Z",
    "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.96.2-ls248 Build-date:- 2024-12-20T22:44:41+00:00",
            "maintainer": "aptalca",
            "org.opencontainers.image.authors": "linuxserver.io",
            "org.opencontainers.image.created": "2024-12-20T22:44:41+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": "2f251a6467bf19c89e6661279530ce2d8e10df9c",
            "org.opencontainers.image.revision": "2f251a6467bf19c89e6661279530ce2d8e10df9c",
            "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.96.2-ls248"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 621760852,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/bec71883970c6dd01ae630bd643ca75bd627e4dbda712550ea72552240b9acc2/diff:/var/lib/docker/overlay2/390a9e270be237a0bae71933b0889eaa5c80d30dd6743860aa3ce9560c7a321f/diff:/var/lib/docker/overlay2/a98e371d28e222fb23de152451d0681ed61444c9fe9e61d73d16f8a18bd8daf1/diff:/var/lib/docker/overlay2/f7792854de56365e714184f3cfdc00b023f6e456d261fa22f8a66e51ac90647d/diff:/var/lib/docker/overlay2/497bf253f4ea4aef483bbe3fc3b09c13fa5f7a660f4948d8475f5f7508a4c9b1/diff:/var/lib/docker/overlay2/e7d0ce32a0cfce9d8d46a5328737947d32a52c1065f50c1a5e04fd3b20c607d4/diff:/var/lib/docker/overlay2/a39c0152e1d610b92437d31363b3a0f3e10fc882d5c5daee3b451e8d93a52188/diff:/var/lib/docker/overlay2/c1bba1ac8316e3505f6b7f8aefe0f78140936dedcc35756b9e329c6b79ce2efa/diff:/var/lib/docker/overlay2/3b4b9c8afef9afdd77453fb8a0ffb570f4774f7cff9c873aaed059f3a5901b71/diff",
            "MergedDir": "/var/lib/docker/overlay2/69eaa44cc8abd93cd654b64d12ee1a3f8205467f53497c9217a5ae787c378bba/merged",
            "UpperDir": "/var/lib/docker/overlay2/69eaa44cc8abd93cd654b64d12ee1a3f8205467f53497c9217a5ae787c378bba/diff",
            "WorkDir": "/var/lib/docker/overlay2/69eaa44cc8abd93cd654b64d12ee1a3f8205467f53497c9217a5ae787c378bba/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:dba8abaeccbd8a62822dca015b4201aa0efd86df5f4637763a11eae896aaf589",
            "sha256:97b146a3050e040acfcf592fd5f29811c641f0f8077a3794b73b060dbca5cc6e",
            "sha256:76d23775efaeac75e49c881a06f505d271ea5c8ee6308c2f307b2527b47d9230",
            "sha256:a1b46a295cbafbb04c8ff02e327445e0302bca43d097e172ffeb0ad8db940971",
            "sha256:3fd9d05f2892fbe2d70fdce6579599a5652fbb9a171a02a900a50f47383fa6dc",
            "sha256:2c22b36eaeb9cab2f18b60b150ead252f1c9a391cff1a7350fdb59fd0d3ad30a",
            "sha256:a0ea4b5f209ebcb88d909fd5c6c6b96945ee90456839ad80ca7e64e286a0be1b",
            "sha256:a07e73eb9d2e888528c25d3042a9239a71d94cefa203c771c61aca7ceabc5398",
            "sha256:ccf34aaea3906551d571d4e01291e78c0b6541e4ec3b5436e579b6bc03b377bc",
            "sha256:77e25b6fb7e0b8e87db6b9d9dc74b24ae0801665ea8ca659a57038a04201e510"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-12-23T10:53:09.011992323+08:00"
    }
}

更多版本

docker.io/linuxserver/code-server:latest

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