Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to modify the configuration file in the docker container

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the knowledge of "how to modify the configuration file in the docker container". Many people will encounter this dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Enter the container

Docker run [option] Image name [commands passed into the startup container]

Find the configuration file

# display file ls result is as follows: LICENSE.txt README.textile config lib modulesNOTICE.txt bin data logs plugins# enters configuration folder cd config# display file ls result is as follows: elasticsearch.keystore ingest-geoip log4j2.properties roles.yml users_roleselasticsearch.yml jvm.options role_mapping.yml users# modifies configuration file vi elasticsearch.yml

When using the docker container, you may not have installed Vi. Install Vi:apt-get install vim. If prompted: Unable to locate package vim, you need to type: apt-get update

Wait until the update is finished and then type the command: apt-get install vim

This is the end of "how to modify the configuration file in the docker container". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report