docker.io/hsuyelin/nas-tools:latest linux/amd64

docker.io/hsuyelin/nas-tools:latest - 国内下载镜像源 浏览次数:323

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

根据 Docker Hub 的信息,这个镜像的描述是:

nas-tools 镜像是一个 Linux 容器镜像,用于提供 NAS 工具集。包含了各种 NAS 相关工具和命令,可以用来管理和维护网络存储设备。

源镜像 docker.io/hsuyelin/nas-tools:latest
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hsuyelin/nas-tools:latest
镜像ID sha256:6b19c5fe023fcca1c59ab5dc20fac0d1352aee8ffcda8bc3364db260d4404351
镜像TAG latest
大小 1.10GB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD
启动入口 /init
工作目录 /nas-tools
OS/平台 linux/amd64
浏览量 323 次
贡献者 ta****4@163.com
镜像创建 2024-07-18T12:51:33.141102489Z
同步时间 2024-09-15 00:02
更新时间 2025-04-05 00:02
开放端口
3000/tcp
目录挂载
/config
环境变量
PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/chromium LANG=C.UTF-8 GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D PYTHON_VERSION=3.10.11 PYTHON_PIP_VERSION=23.0.1 PYTHON_SETUPTOOLS_VERSION=65.5.1 PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/0d8570dc44796f4369b652222cf176b3db6ac70e/public/get-pip.py PYTHON_GET_PIP_SHA256=96461deced5c2a487ddc65207ec5a9cffeca0d34e7af7ea1afc470ff0d746207 S6_SERVICES_GRACETIME=30000 S6_KILL_GRACETIME=60000 S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 S6_SYNC_DISKS=1 HOME=/nt TERM=xterm TZ=Asia/Shanghai NASTOOL_CONFIG=/config/config.yaml NASTOOL_AUTO_UPDATE=false NASTOOL_CN_UPDATE=true NASTOOL_VERSION=master PS1=\u@\h:\w $ REPO_URL=https://github.com/hsuyelin/nas-tools.git PYPI_MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple ALPINE_MIRROR=mirrors.ustc.edu.cn PUID=0 PGID=0 UMASK=000 PYTHONWARNINGS=ignore:semaphore_tracker:UserWarning WORKDIR=/nas-tools
镜像标签
2024-07-18T12:50:02.610Z: org.opencontainers.image.created NAS媒体库管理工具: org.opencontainers.image.description AGPL-3.0: org.opencontainers.image.licenses 3f13575456358490deb4502c8e7b8d070c1a92d9: org.opencontainers.image.revision https://github.com/hsuyelin/nas-tools: org.opencontainers.image.source nas-tools: org.opencontainers.image.title https://github.com/hsuyelin/nas-tools: org.opencontainers.image.url 3.4.1: org.opencontainers.image.version

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hsuyelin/nas-tools:latest
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hsuyelin/nas-tools:latest  docker.io/hsuyelin/nas-tools:latest

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hsuyelin/nas-tools:latest
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hsuyelin/nas-tools:latest  docker.io/hsuyelin/nas-tools:latest

Shell快速替换命令

sed -i 's#hsuyelin/nas-tools:latest#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hsuyelin/nas-tools:latest#' deployment.yaml

Ansible快速分发-Docker

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

Ansible快速分发-Containerd

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

镜像构建历史


# 2024-07-18 20:51:33  0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/init"]
                        
# 2024-07-18 20:51:33  0.00B 创建挂载点用于持久化数据或共享数据
VOLUME [/config]
                        
# 2024-07-18 20:51:33  0.00B 声明容器运行时监听的端口
EXPOSE map[3000/tcp:{}]
                        
# 2024-07-18 20:51:33  8.36KB 复制新文件或目录到容器中
COPY --chmod=755 ./rootfs / # buildkit
                        
# 2024-07-18 20:51:33  28.72MB 执行命令并创建新的镜像层
RUN /bin/sh -c mkdir ${HOME}     && addgroup -S nt -g 911     && adduser -S nt -G nt -h ${HOME} -s /bin/bash -u 911     && python_ver=$(python3 -V | awk '{print $2}')     && python_path=$(which python3)     && [ -d "/usr/lib/python${python_ver%.*}/site-packages" ] || mkdir -p "/usr/lib/python${python_ver%.*}/site-packages"     && echo "${WORKDIR}/" > /usr/lib/python${python_ver%.*}/site-packages/nas-tools.pth     && echo 'fs.inotify.max_user_watches=5242880' >> /etc/sysctl.conf     && echo 'fs.inotify.max_user_instances=5242880' >> /etc/sysctl.conf     && echo "nt ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers     && git config --global pull.ff only     && git clone -b master ${REPO_URL} ${WORKDIR} --depth=1 --recurse-submodule     && git config --global --add safe.directory ${WORKDIR} # buildkit
                        
# 2024-07-18 20:51:32  0.00B 设置工作目录为/nas-tools
WORKDIR /nas-tools
                        
# 2024-07-18 20:51:32  0.00B 设置环境变量 S6_SERVICES_GRACETIME S6_KILL_GRACETIME S6_CMD_WAIT_FOR_SERVICES_MAXTIME S6_SYNC_DISKS HOME TERM PATH LANG TZ NASTOOL_CONFIG NASTOOL_AUTO_UPDATE NASTOOL_CN_UPDATE NASTOOL_VERSION PS1 REPO_URL PYPI_MIRROR ALPINE_MIRROR PUID PGID UMASK PYTHONWARNINGS WORKDIR
ENV S6_SERVICES_GRACETIME=30000 S6_KILL_GRACETIME=60000 S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 S6_SYNC_DISKS=1 HOME=/nt TERM=xterm PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/chromium LANG=C.UTF-8 TZ=Asia/Shanghai NASTOOL_CONFIG=/config/config.yaml NASTOOL_AUTO_UPDATE=false NASTOOL_CN_UPDATE=true NASTOOL_VERSION=master PS1=\u@\h:\w $  REPO_URL=https://github.com/hsuyelin/nas-tools.git PYPI_MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple ALPINE_MIRROR=mirrors.ustc.edu.cn PUID=0 PGID=0 UMASK=000 PYTHONWARNINGS=ignore:semaphore_tracker:UserWarning WORKDIR=/nas-tools
                        
# 2024-07-18 20:51:32  1.02GB 执行命令并创建新的镜像层
RUN /bin/sh -c apk add --no-cache --virtual .build-deps         libffi-dev         gcc         musl-dev         libxml2-dev         libxslt-dev     && apk add --no-cache $(echo $(wget --no-check-certificate -qO- https://raw.githubusercontent.com/hsuyelin/nas-tools/master/package_list.txt))     && curl https://rclone.org/install.sh | bash     && if [ "$(uname -m)" = "x86_64" ]; then ARCH=amd64; elif [ "$(uname -m)" = "aarch64" ]; then ARCH=arm64; fi     && curl https://dl.min.io/client/mc/release/linux-${ARCH}/mc --create-dirs -o /usr/bin/mc     && chmod +x /usr/bin/mc     && pip install --upgrade pip setuptools wheel     && pip install cython     && pip install -r https://raw.githubusercontent.com/hsuyelin/nas-tools/master/requirements.txt     && apk del --purge .build-deps     && rm -rf /tmp/* /root/.cache /var/cache/apk/* # buildkit
                        
# 2023-05-10 18:10:11  0.00B 设置默认要执行的命令
CMD ["python3"]
                        
# 2023-05-10 18:10:11  11.02MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 		wget -O get-pip.py "$PYTHON_GET_PIP_URL"; 	echo "$PYTHON_GET_PIP_SHA256 *get-pip.py" | sha256sum -c -; 		export PYTHONDONTWRITEBYTECODE=1; 		python get-pip.py 		--disable-pip-version-check 		--no-cache-dir 		--no-compile 		"pip==$PYTHON_PIP_VERSION" 		"setuptools==$PYTHON_SETUPTOOLS_VERSION" 	; 	rm -f get-pip.py; 		pip --version # buildkit
                        
# 2023-05-10 18:10:11  0.00B 设置环境变量 PYTHON_GET_PIP_SHA256
ENV PYTHON_GET_PIP_SHA256=96461deced5c2a487ddc65207ec5a9cffeca0d34e7af7ea1afc470ff0d746207
                        
# 2023-05-10 18:10:11  0.00B 设置环境变量 PYTHON_GET_PIP_URL
ENV PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/0d8570dc44796f4369b652222cf176b3db6ac70e/public/get-pip.py
                        
# 2023-05-10 18:10:11  0.00B 设置环境变量 PYTHON_SETUPTOOLS_VERSION
ENV PYTHON_SETUPTOOLS_VERSION=65.5.1
                        
# 2023-05-10 18:10:11  0.00B 设置环境变量 PYTHON_PIP_VERSION
ENV PYTHON_PIP_VERSION=23.0.1
                        
# 2023-05-10 18:10:11  32.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	for src in idle3 pydoc3 python3 python3-config; do 		dst="$(echo "$src" | tr -d 3)"; 		[ -s "/usr/local/bin/$src" ]; 		[ ! -e "/usr/local/bin/$dst" ]; 		ln -svT "$src" "/usr/local/bin/$dst"; 	done # buildkit
                        
# 2023-05-10 18:10:11  29.73MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 		apk add --no-cache --virtual .build-deps 		gnupg 		tar 		xz 				bluez-dev 		bzip2-dev 		dpkg-dev dpkg 		expat-dev 		findutils 		gcc 		gdbm-dev 		libc-dev 		libffi-dev 		libnsl-dev 		libtirpc-dev 		linux-headers 		make 		ncurses-dev 		openssl-dev 		pax-utils 		readline-dev 		sqlite-dev 		tcl-dev 		tk 		tk-dev 		util-linux-dev 		xz-dev 		zlib-dev 	; 		wget -O python.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz"; 	wget -O python.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc"; 	GNUPGHOME="$(mktemp -d)"; export GNUPGHOME; 	gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys "$GPG_KEY"; 	gpg --batch --verify python.tar.xz.asc python.tar.xz; 	gpgconf --kill all; 	rm -rf "$GNUPGHOME" python.tar.xz.asc; 	mkdir -p /usr/src/python; 	tar --extract --directory /usr/src/python --strip-components=1 --file python.tar.xz; 	rm python.tar.xz; 		cd /usr/src/python; 	gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; 	./configure 		--build="$gnuArch" 		--enable-loadable-sqlite-extensions 		--enable-optimizations 		--enable-option-checking=fatal 		--enable-shared 		--with-lto 		--with-system-expat 		--without-ensurepip 	; 	nproc="$(nproc)"; 	EXTRA_CFLAGS="-DTHREAD_STACK_SIZE=0x100000"; 	LDFLAGS="${LDFLAGS:--Wl},--strip-all"; 	make -j "$nproc" 		"EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" 		"LDFLAGS=${LDFLAGS:-}" 		"PROFILE_TASK=${PROFILE_TASK:-}" 	; 	rm python; 	make -j "$nproc" 		"EXTRA_CFLAGS=${EXTRA_CFLAGS:-}" 		"LDFLAGS=${LDFLAGS:--Wl},-rpath='\$\$ORIGIN/../lib'" 		"PROFILE_TASK=${PROFILE_TASK:-}" 		python 	; 	make install; 		cd /; 	rm -rf /usr/src/python; 		find /usr/local -depth 		\( 			\( -type d -a \( -name test -o -name tests -o -name idle_test \) \) 			-o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) 		\) -exec rm -rf '{}' + 	; 		find /usr/local -type f -executable -not \( -name '*tkinter*' \) -exec scanelf --needed --nobanner --format '%n#p' '{}' ';' 		| tr ',' '\n' 		| sort -u 		| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' 		| xargs -rt apk add --no-network --virtual .python-rundeps 	; 	apk del --no-network .build-deps; 		python3 --version # buildkit
                        
# 2023-05-10 18:10:11  0.00B 设置环境变量 PYTHON_VERSION
ENV PYTHON_VERSION=3.10.11
                        
# 2023-05-10 18:10:11  0.00B 设置环境变量 GPG_KEY
ENV GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D
                        
# 2023-05-10 18:10:11  1.64MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; 	apk add --no-cache 		ca-certificates 		tzdata 	; # buildkit
                        
# 2023-05-10 18:10:11  0.00B 设置环境变量 LANG
ENV LANG=C.UTF-8
                        
# 2023-05-10 18:10:11  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2023-05-10 07:11:10  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/sh"]
                        
# 2023-05-10 07:11:10  7.33MB 
/bin/sh -c #(nop) ADD file:7625ddfd589fb824ee39f1b1eb387b98f3676420ff52f26eb9d975151e889667 in / 
                        
                    

镜像信息

{
    "Id": "sha256:6b19c5fe023fcca1c59ab5dc20fac0d1352aee8ffcda8bc3364db260d4404351",
    "RepoTags": [
        "hsuyelin/nas-tools:latest",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hsuyelin/nas-tools:latest"
    ],
    "RepoDigests": [
        "hsuyelin/nas-tools@sha256:06479d6ef4b0c0e175f257b82ff9b67367ee2ef1578d8dab7ca0bad45ef766c0",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/hsuyelin/nas-tools@sha256:80ebfbf21858fc55cd6a9ad463836abf901655e4f4de3c2de6b10c2d71296c6b"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-07-18T12:51:33.141102489Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "ExposedPorts": {
            "3000/tcp": {}
        },
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/chromium",
            "LANG=C.UTF-8",
            "GPG_KEY=A035C8C19219BA821ECEA86B64E628F8D684696D",
            "PYTHON_VERSION=3.10.11",
            "PYTHON_PIP_VERSION=23.0.1",
            "PYTHON_SETUPTOOLS_VERSION=65.5.1",
            "PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/0d8570dc44796f4369b652222cf176b3db6ac70e/public/get-pip.py",
            "PYTHON_GET_PIP_SHA256=96461deced5c2a487ddc65207ec5a9cffeca0d34e7af7ea1afc470ff0d746207",
            "S6_SERVICES_GRACETIME=30000",
            "S6_KILL_GRACETIME=60000",
            "S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0",
            "S6_SYNC_DISKS=1",
            "HOME=/nt",
            "TERM=xterm",
            "TZ=Asia/Shanghai",
            "NASTOOL_CONFIG=/config/config.yaml",
            "NASTOOL_AUTO_UPDATE=false",
            "NASTOOL_CN_UPDATE=true",
            "NASTOOL_VERSION=master",
            "PS1=\\u@\\h:\\w $ ",
            "REPO_URL=https://github.com/hsuyelin/nas-tools.git",
            "PYPI_MIRROR=https://pypi.tuna.tsinghua.edu.cn/simple",
            "ALPINE_MIRROR=mirrors.ustc.edu.cn",
            "PUID=0",
            "PGID=0",
            "UMASK=000",
            "PYTHONWARNINGS=ignore:semaphore_tracker:UserWarning",
            "WORKDIR=/nas-tools"
        ],
        "Cmd": null,
        "ArgsEscaped": true,
        "Image": "",
        "Volumes": {
            "/config": {}
        },
        "WorkingDir": "/nas-tools",
        "Entrypoint": [
            "/init"
        ],
        "OnBuild": null,
        "Labels": {
            "org.opencontainers.image.created": "2024-07-18T12:50:02.610Z",
            "org.opencontainers.image.description": "NAS媒体库管理工具",
            "org.opencontainers.image.licenses": "AGPL-3.0",
            "org.opencontainers.image.revision": "3f13575456358490deb4502c8e7b8d070c1a92d9",
            "org.opencontainers.image.source": "https://github.com/hsuyelin/nas-tools",
            "org.opencontainers.image.title": "nas-tools",
            "org.opencontainers.image.url": "https://github.com/hsuyelin/nas-tools",
            "org.opencontainers.image.version": "3.4.1"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 1096329754,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/60f97f26c68c9b534f96ff8e44dc3ed5238c732dbfb9f20fdbf69480bf5b0861/diff:/var/lib/docker/overlay2/c1f88320b4e28b47de13809ed144a6faee6b396e0e38a76ae14d67c2de6e1c71/diff:/var/lib/docker/overlay2/d5379986f2123100ea2c994d0ebb4fb2f7e9ba358c59c111dfcabf6649d24bbc/diff:/var/lib/docker/overlay2/ea46c789d1efcae5b10d9a4d9b404b2c1d8b5c5cc6404487b4f744864d8750bc/diff:/var/lib/docker/overlay2/65bc3509ed47e4533f07a4c850932bfd33a97f8d4a4bb956a7c31f96b66ab5e0/diff:/var/lib/docker/overlay2/09e61838bddaaa7bb823bc9d942d0fdceab35f20eeda210653f57e6e8ded1025/diff:/var/lib/docker/overlay2/180d0ab2fcb16917bfc63b30b8ee2c951812aeec1e95e06c0c4e852870175c25/diff:/var/lib/docker/overlay2/769921ab0098f97f8c634586ca4a092afdcdb848ff5df136fa65dc45d4b68d2a/diff",
            "MergedDir": "/var/lib/docker/overlay2/916734682d074731d70ee1e5e1c361657c1345574ec86e12147c960d18c2217f/merged",
            "UpperDir": "/var/lib/docker/overlay2/916734682d074731d70ee1e5e1c361657c1345574ec86e12147c960d18c2217f/diff",
            "WorkDir": "/var/lib/docker/overlay2/916734682d074731d70ee1e5e1c361657c1345574ec86e12147c960d18c2217f/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:bb01bd7e32b58b6694c8c3622c230171f1cec24001a82068a8d30d338f420d6c",
            "sha256:208977ac81d79a33082babcb62e6971018ec28df3b7a2d7c8d1c4034251cfa1c",
            "sha256:3b787bd09f7a3cf8c4a4e493249d6cac80bc0b8667a37e1ae4686de3409a92a8",
            "sha256:00b0c44330bf698919fb7e0da81caf06599889c19bd7b4513d2a21e295ace714",
            "sha256:f288e3d33a08119a5f67dccafee544cb8b5117b59cb67f7d6c61f25d887a84e0",
            "sha256:6f9c8260842192b8813495e16449aca9398f57e43be457afaba79eaa2da4068f",
            "sha256:e31f999dff4d8df06898106b43490f309f457378bf193078477f617bca5743ef",
            "sha256:76b36a6c438e22d7eb3972e1974b0d91ef802bb3decf24cf89e9214eca10de92",
            "sha256:0975f62f5647663bbd1b0425fc25816d17d5f6a34b2a9e80709ce46db472874d"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-09-15T00:01:56.68319838+08:00"
    }
}

更多版本

docker.io/hsuyelin/nas-tools:3.4.0

linux/amd64 docker.io1.10GB2024-06-18 13:43
475

docker.io/hsuyelin/nas-tools:latest

linux/amd64 docker.io1.10GB2024-09-15 00:02
322