How to extend an existing docker image?

前端 未结 3 988
闹比i
闹比i 2020-12-05 17:03

I\'m using the official elasticsearch Docker image instead of setting up my own elastic search instance. And that works great, up to the point when I wanted to extend it. I

3条回答
  •  臣服心动
    2020-12-05 18:01

    Simply extend it using a Dockerfile that start with

    FROM dockerfile/elasticsearch
    

    and install marvel or ssh-server or whatever you need. Then, end with the correct command to start your services. You can use supervisor to start multple services, see Run a service automatically in a docker container for more info on that.

提交回复
热议问题