小编ten*_*ive的帖子

在 dockerfile 中的 FROM 中使用 ARG

问题陈述:我需要根据提供的arg从两个不同的url中提取docker(projectA和projectB)。

ARG url=docker-local.artifactory.com/projectA #By default its for A.
RUN echo ${url}
FROM $url
Run Code Online (Sandbox Code Playgroud)

理想的解决方案:

docker build -t hello .应该构建项目A的docker

docker build --build-arg url="docker-local.artifactory.com/projectB" -t hello .应该构建项目 B 的 docker。

当前的问题:

"base name ($url) should not be blank"
Run Code Online (Sandbox Code Playgroud)

docker dockerfile

9
推荐指数
1
解决办法
8567
查看次数

如何使用 Helm 从我的文件系统部署 docker 映像?

如何使用 Helm 从本地文件系统部署 docker 映像?

图表中的语法是什么?

我不想从本地 docker 守护进程/存储库中提取数据,而是从适当的文件系统中提取数据。 file:///mumble/whatever所产生的docker build -o type=local,dest=mumble/whatever

docker kubernetes-helm

5
推荐指数
1
解决办法
8155
查看次数

使用 docker 安装 google-chrome-stable

当我执行 docker-compose build 时出现错误。

我正在使用 apple siilcon,并且能够使用 intel 构建它,没有任何问题。有谁知道是否出了什么问题?

码头工人的内容

    RUN apt-get update && apt-get install -y unzip && \
    CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` && \
    wget -N http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip -P ~/ && \
    unzip ~/chromedriver_linux64.zip -d ~/ && \
    rm ~/chromedriver_linux64.zip && \
    chown root:root ~/chromedriver && \
    chmod 755 ~/chromedriver && \
    mv ~/chromedriver /usr/bin/chromedriver && \
    sh -c 'wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -' && \
    sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' …
Run Code Online (Sandbox Code Playgroud)

google-chrome docker

4
推荐指数
1
解决办法
6033
查看次数

kubectl get all - 命令返回 - 限制请求

运行kubectl get all返回限制请求错误

如何调试和修复此问题?

I0223 10:28:04.717522   44883 request.go:655] Throttling request took 1.1688991s, request: GET:https://192.168.64.2:8443/apis/apps/v1?timeout=32s
I0223 10:28:14.913541   44883 request.go:655] Throttling request took 5.79656704s, request: GET:https://192.168.64.2:8443/apis/authorization.k8s.io/v1?timeout=32s
I0223 10:28:24.914386   44883 request.go:655] Throttling request took 7.394979677s, request: GET:https://192.168.64.2:8443/apis/cert-manager.io/v1alpha2?timeout=32s
I0223 10:28:35.513643   44883 request.go:655] Throttling request took 1.196992376s, request: GET:https://192.168.64.2:8443/api/v1?timeout=32s
I0223 10:28:45.516586   44883 request.go:655] Throttling request took 2.79962307s, request: GET:https://192.168.64.2:8443/apis/rbac.authorization.k8s.io/v1?timeout=32s
I0223 10:28:55.716699   44883 request.go:655] Throttling request took 4.600430975s, request: GET:https://192.168.64.2:8443/apis/node.k8s.io/v1beta1?timeout=32s
I0223 10:29:05.717707   44883 request.go:655] Throttling request took 6.196503125s, request: GET:https://192.168.64.2:8443/apis/storage.k8s.io/v1?timeout=32s
I0223 10:29:15.914744   44883 request.go:655] …
Run Code Online (Sandbox Code Playgroud)

kubernetes kubectl

3
推荐指数
2
解决办法
1876
查看次数