Search code examples
dockerdocker-build

Add new gems to an existing image and create a new Docker image


I'm trying to add new gems to an existing Docker image which doesn't have a Dockerfile. Below is what I have tried:

 - logged into the `bash` Docker image 
 - gem install <new dependency>

How do I create a new image after the above steps?


Solution

  • Use the docker commit command. See here.