apk add oh-my-zsh
在docker容器上运行我得到:
/ # apk add oh-my-zsh
ERROR: unable to select packages:
oh-my-zsh (no such package):
required by: world[oh-my-zsh]
该包似乎存在:https://pkgs.alpinelinux.org/package/edge/testing/x86/oh-my-zsh
以下是我正在构建的docker文件:
FROM alpine:latest
RUN apk update
RUN apk add curl
RUN apk add zsh
RUN apk add git
RUN apk add oh-my-zsh
答案1
alpine 的“最新”docker 镜像使用 3.16.x,不包含 oh-my-zsh 包。只有 alpine 的“edge”版本才有 oh-my-zsh。