-
Notifications
You must be signed in to change notification settings - Fork 10
Docker FAQ & Examples
Yi Lin edited this page Jan 25, 2024
·
1 revision
https://hub.docker.com/r/ytyou/ticktock
There is a docker option, -v, which maps a host volume to a volume inside docker. Here is a a good article for your reference.
Example:
- Create a data (/home/ylin30/tmp/ticktock) on host
[yi-IdeaPad tmp]$ pwd
/home/ylin30/tmp
[yi-IdeaPad tmp]$ mkdir ticktock
- Run the docker with
-voption, linking/home/ylin30/tmp/ticktockon the host to/var/lib/ticktockinside the containcer. You can see files created in the dir.
[yi-IdeaPad tmp]$ docker run -d --name ticktock-grafana -p 3000:3000 -p 6181-6182:6181-6182 -p 6181:6181/udp -v /home/ylin30/tmp/ticktock:/var/lib/ticktock ytyou/ticktock:latest-grafana
6ac39815b6e2902412b291c5d0a192cb2d3c2da064b1bc3d742a4f5bf05c3377
[yi-IdeaPad tmp]$ ls ticktock/
append conf data log
- Try to write some data points to TT. You can see there are data files created.
[yi-IdeaPad tmp]$ curl -XPOST 'http://localhost:6182/api/put' -d 'put testM1 1633412175 123 host=foo'
[yi-IdeaPad tmp]$ ls ticktock/data/1
1633392000.1633478400.0 1633392000.1633478400.meta 1706140800.1706227200.0 1706140800.1706227200.meta
- Stop and remove the container. And the dir,
/home/ylin30/tmp/ticktock, is still there.
[yi-IdeaPad tmp]$ docker stop ticktock-grafana
ticktock-grafana
[yi-IdeaPad tmp]$ docker rm ticktock-grafana
ticktock-grafana
[yi-IdeaPad tmp]$ ls ticktock/
append conf data log
[yi-IdeaPad tmp]$
1. Introduction
1.1 Docker demo
1.2 Success Stories
2. User Guide
2.1 Usage Examples
4.5 TT vs InfluxDB: a) PI-0-w (1, 2), b) OrangePI-zero2, c) RPI4, d) RPI5 query perf
4.6 TT vs OpenTSDB on x86 : cardinality, throughput