将新宝石添加到现有图像并创建新的 Docker 图像
Add new gems to an existing image and create a new Docker image
我正在尝试向没有 Docker 文件的现有 Docker 图像添加新的 Gem。以下是我尝试过的:
- logged into the `bash` Docker image
- gem install <new dependency>
如何在完成上述步骤后创建新图像?
使用docker commit
命令。参见 here。
我正在尝试向没有 Docker 文件的现有 Docker 图像添加新的 Gem。以下是我尝试过的:
- logged into the `bash` Docker image
- gem install <new dependency>
如何在完成上述步骤后创建新图像?
使用docker commit
命令。参见 here。