-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
What happened:
我在尝试Build application image Kubevela时出现了以下报错
imageList
oamdev/alpine-k8s:1.18.2
oamdev/cluster-gateway:v1.4.0
oamdev/hello-world:v1
oamdev/kube-webhook-certgen:v2.4.1
oamdev/vela-core:v1.4.5
Kubefile
FROM kubernetes:v1.22.8
#images pull before cluster build
COPY imageList manifests
#helm
# install kubevela command
COPY kubectl-vela-v1.4.5-linux-amd64.tar.gz .
CMD tar zxvf kubectl-vela-v1.4.5-linux-amd64.tar.gz && cp linux-amd64/kubectl-vela /usr/local/bin/vela && chmod +x /usr/local/bin/vela
# install kubevela core
COPY vela-core charts
CMD helm install --create-namespace -n vela-system kubevela charts/vela-core --wait
# install velaUX
CMD /usr/local/bin/vela addon enable velaux --version=v1.4.5 serviceType=NodePort
build执行
# sealer build -t kubevela-app:v1.4.5 --base=false .
What you expected to happen:
出现报错如下:
Error: save domain docker.io image error: get repository name error: invalid reference format
Usage:
sealer build [flags] PATH
Examples:
the current path is the context path, default build type is lite and use build cache
build:
sealer build -f Kubefile -t my-kubernetes:1.19.8 .
build without cache:
sealer build -f Kubefile -t my-kubernetes:1.19.8 --no-cache .
build without base:
sealer build -f Kubefile -t my-kubernetes:1.19.8 --base=false .
build with args:
sealer build -f Kubefile -t my-kubernetes:1.19.8 --build-arg MY_ARG=abc,PASSWORD=Sealer123 .
Flags:
--base build with base image,default value is true. (default true)
--build-arg strings set custom build args
-h, --help help for build
-t, --imageName string cluster image name
-f, --kubefile string kubefile filepath (default "Kubefile")
-m, --mode string cluster image build type, default is lite (default "lite")
--no-cache build without cache
--platform string set cloud image platform,if not set,keep same platform with runtime
Global Flags:
--config string config file (default is $HOME/.sealer.json)
-d, --debug turn on debug mode
--hide-path hide the log path
--hide-time hide the log time
save domain docker.io image error: get repository name error: invalid reference format
debug时候偶现pull docker.io/library/_params.image:latest时的报错:
save domain docker.io image error: get library/parameter.image tag descriptor error: unknown tag=latest, try "docker login" if you are using a private registry
请教下导致这些情况一般是因为?可以如何解决?
Anything else we need to know?:
Environment:
- sealer version (use
sealer version
):
# sealer version
{"gitVersion":"v0.8.5","gitCommit":"f9c3d99","buildDate":"2022-04-28 14:16:58","goVersion":"go1.16.15","compiler":"gc","platform":"linux/amd64"}
- Cloud provider or hardware configuration:
- OS (e.g: `# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"`):
- Kernel (e.g.
uname -a
):
3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
- Install tools:
- Others:
Metadata
Metadata
Assignees
Labels
No labels