AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
We can also copy an entire directory instead of single files. To copy files from the grafana container to the /tmp directory on the host machine, we just switch the order of the parameters: docker cp grafana:/usr/share/grafana/conf/defaults.ini /tmp We can also use container IDs instead of their names: docker cp /tmp/config.ini 1477326feb62:/usr/share/grafana/conf/ The first example copies a file from the /tmp directory on the host machine into the Grafana install directory in the grafana container: docker cp /tmp/config.ini grafana:/usr/share/grafana/conf/ CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESġ477326feb62 grafana/grafana "/run.sh" 2 months ago Up 3 days 0.0.0.0:3000->3000/tcp grafanaĨc45029d15e8 prom/prometheus "/bin/prometheus -c…" 2 months ago Up 3 days 0.0.0.0:9090->9090/tcp prometheus
0 Comments
Read More
Leave a Reply. |