0

Now I have A running docker Container, I have a Running Container from

zabbix_server Image , i want to change parameter in /etc/zabbix/zabbix_server

how can This running container about the new changes

Net Sim
  • 337
  • 2
  • 6
  • 20
  • Possible duplicate of [How to edit Docker container files from the host?](https://stackoverflow.com/questions/24553790/how-to-edit-docker-container-files-from-the-host) – morganbaz Jun 20 '18 at 07:41
  • See also: [Copying files from host to Docker container](https://stackoverflow.com/a/31971697/5328069) – morganbaz Jun 20 '18 at 07:42
  • sorry , it is not the same : now i have container from zabbix-server image i want to change some parameters in this running container , how can container know this changes . thank u in advance – Net Sim Jun 20 '18 at 07:50
  • Please edit your question accordingly. You talk about modifying files, not the command ran on the container. – morganbaz Jun 20 '18 at 07:55
  • i edited it , thank u , there is a solution ? – Net Sim Jun 20 '18 at 07:59

1 Answers1

0

If it's a CMD or ENTRYPOINT, you can override it following this link override ENTRYPOINT or CMD

If it's not a CMD or ENTRYPOINT, access to your container using shell after copy your new files:

docker cp <yourfile> <yourcontainer>:/path
docker exec -ti <yourcontainer> /bin/bash 
Alejandro Galera
  • 3,445
  • 3
  • 24
  • 42
  • docker exec -ti /bin/bash : in this command , running container can know the changes , i want to change in /etc/zabbix/zabbix_server.conf , container can know this changes automatically ? – Net Sim Jun 20 '18 at 07:51