我在docker集线器上find了一个我喜欢但不符合我的需求的图像。 我如何更新它并使之成为我自己的?

我在docker( https://hub.docker.com/r/realbazso/horizo​​n )上find了我喜欢的图片。 我正在尝试将其更新到运行此软件的最新版本的位置。

我testing了运行提供的参数运行图像,它的效果很好,但该图像的VMWare Horizo​​n客户端版本没有更新的SSL库,无法连接到我所需要的服务器,而不会引发SSL错误。

我对docker工人超级新,但是我想知道有没有人可以帮我。 我想把它安装在Ubuntu 14.04的映像上,但是我只是无法把它包裹起来。

我将添加更多的信息@ user2915097的答案。

当你想编辑/更新一个已经存在的图像时,首先要做的是看看你是否能find它的Dockerfile。 幸运的是,这个回购有一个Dockerfile附加到它,使它更容易。 我评论了这个文件,以便你能更好地理解正在发生的事情:

# Pulls the ubuntu image. This will serve as the base image for the container. You could change this and use ubuntu:16.04 to get the latest LTS. FROM ubuntu:14.04 # RUN will execute the commands for you when you build the image from this Dockerfile. This is probably where you will want to change the source RUN echo "deb http://archive.canonical.com/ubuntu/ trusty partner" >> /etc/apt/sources.list && \ dpkg --add-architecture i386 && \ apt-get update && \ apt-get install -y vmware-view-client # CMD will execute the command (there can only be one!) when you start/run the container CMD /usr/bin/vmware-view 

理解这些命令的好资源是https://docs.docker.com/engine/reference/builder/ 。 请务必访问该页面以了解有关Dockerfile的更多信息!

一旦你有一个Dockerfile准备好构build,导航到Dockerfile所在的文件夹并运行:

 # Make sure to change the argument of -t docker build -t yourDockerHubUsername/containerName . 

在正常工作之前,您可能需要修改Dockerfile几次。 如果您在使用caching数据时遇到Docker问题

因为你有食谱,如果你看看https://hub.docker.com/r/realbazso/horizo​​n/~/dockerfile/

你应该创build一个目录,把这个Dockerfile,修改它,build立另一个图像

docker build -t tucker/myhorizon .

启动它,testing它,再修改Dockerfile也许。

检查列出的文档R0MANARMY