问题标签 [docker-image]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
curl - 如何使用 curl 命令获取清单 v2 架构版本 2
以上是我使用的命令。我已经在标头中将 Accept 字段设置为模式版本 2清单媒体类型,但它仍然返回我具有模式版本 1的清单
docker - 如何基于现有镜像创建新的 docker 镜像?
我刚开始使用docker。我使用 docker 文件创建了一个图像。如何从现有图像创建新图像?
docker - Why docker build image from docker file will create container when build exit incorrectly?
I'm using docker to build images from a docker file. In the process there's some error happened, so the build exit with error code.
When I run docker images
I can see a untagged image. so I tried to remove it docker rmi xxxxx
. But it always fails, it says the images can't be removed because it's used by a stopped container.
So I dig a little deeper. I run docker ps -a
, now I can see a long list of stopped container which are created when the build process fails.
Why there will be container created?? I thought image is like the concept of "class" in programming, and container is instance of the class. Before the image is successfully built, why there'll be instance created? How can I build image without all those stopped containers ?
macos - 将您的应用程序添加到 Docker 映像
我正在实现一个 docker 容器来编译(构建)我的 C++ 代码。我的代码支持的平台是 Windows、Linux 和 Mac OSX。
我在我的 Mac 机器上使用 clang 来编译代码;Linux 上的 gcc 和 Windows 上的 Microsoft 编译器 (cl)。这个想法是创建一个 Docker 容器并在 Windows 机器本身(在 docker 容器内)上执行构建(Linux 和 Mac),这样我就不必将代码推送到 git;然后从我的 Mac 机器上拉出来,然后构建等等。
我用来执行 Mac 构建的图像(因为我在 Mac OSX 上使用 clang)是https://hub.docker.com/r/rsmmr/clang/。
我想为此图像添加一个可执行文件,用于测试目的。它被称为“测试应用程序”。
所以镜像应该有以下组件:Base OS + Clang + testapp。
如何将我的可执行文件“testapp”(比如:应用程序/实用程序)添加到这个图像“rsmmr/clang”(我从 dockerhub 中提取)?
我是否通过 Dockerfile 执行此操作(如何?)?有没有其他方法可以完成同样的事情?
docker - Docker中的导入和加载有什么区别?
export
我了解(对于容器)和save
(对于图像)之间的区别。但是在一天结束时,保存或导出生成的压缩包应该用作图像。
那么为什么有 2 个命令可以从 tarball 制作图像呢?
linux - 'tar cv --files-from /dev/null | 如何 docker import - 从头开始工作?
在学习 docker 以及如何创建最小图像时,我遇到了这个命令:-
这将创建一个最小的 docker 图像。
我无法理解我们这样做时会发生什么tar cv --files-from /dev/null
。如果我在终端上运行这个命令,我不会得到任何输出。
如果我docker import - scratch
一个人跑,它就会永远挂在那里。
那么这两个命令的组合是如何工作的呢?我仍然很困惑,它是如何工作的,并试图弄清楚实际的工作,对此的任何帮助/指导将不胜感激。
docker - docker “Data Space Total” 的 Kubelet 镜像 GC 而不是磁盘空间
码头工人 1.10.2
Kubernetes 1.1.7
我用参数启动docker
并带参数启动 Kubelet
docker info 显示数据空间总计:107.4 GB。而mydisk是1.2T。经过长时间运行,拉取的 docker 镜像总大小达到 107.4GB。然后 docker 守护进程崩溃。我不想设置
对于码头工人。那么我该怎么做才能为 docker “Data Space Total” 而不是磁盘空间制作 Kubelet 镜像 GC?
docker - 一个完全闭源的 docker 容器
我想知道是否可以提供 Docker 映像,但不允许对已构建容器的内部进行任何访问。基本上,容器镜像的用户可以使用他们提供的服务,但不能挖掘容器内的任何代码。
称其为混淆源代码的一种方式,但也基于容器向某人提供服务(软件),而不是提供软件本身。类似于“容器即服务”的东西,但主要优点是开发人员也可以使用这些容器进行本地开发,但无法访问容器内的底层代码。
我的第一个想法是,Docker 实例的控制器控制一切,直至根访问。所以不,这是不可能的。但是,我是 Docker 新手,并不了解它的所有可能性。
这个想法有可能吗?
docker - 调整 Docker 容器的磁盘使用量
每个 Docker 容器都会配置 10 GB 的磁盘空间,这是 CentOS 中 devicemapper 的默认配置。那么如何将每个新创建的容器配置为默认超过 10 GB 的磁盘空间呢?(主机服务器安装了 CentOS 6 和 Docker 1.7.1)
docker - 在 docker slim 中接收超时,同时减小 docker 映像大小
我厌倦了使用 docker slim 减小我的 docker 映像大小,但面临连接超时问题,我使用了以下命令:./docker-slim build --http-probe
但出现以下错误
信息 [0008] docker-slim:http 探测 - 获取http://127.0.0.1:32792/错误:获取http://127.0.0.1:32792/:拨打 tcp 127.0.0.1:32792:getsockopt:连接被拒绝
INFO[0008] docker-slim:HTTP 探测完成。
INFO[0270] sendCmd(): 接收超时...
有人可以帮忙吗?