把EdgeManager做成daemon

This commit is contained in:
Yu Sun
2022-08-09 16:39:05 +08:00
parent 2540bdd9b7
commit b54c1650cd

View File

@@ -303,7 +303,7 @@ psql -h localhost -U postgres
# 创建EdgeManager的image
docker build --network host -t edge_manager .
# 创建container运行EdgeManager
docker run --name edge_manager_test -v $PWD:/EdgeManager --network host -it edge_manager bash
docker run -d --name edge_manager_test -v $PWD:/EdgeManager --network host -it edge_manager
# 创建container运行pg将端口映射到host的55432
docker run -d --name pg_test -v $PWD/config/postgresql.conf:/etc/postgresql/postgresql.conf -p 55432:5432 -e POSTGRES_PASSWORD=big_dick -it timescale/timescaledb-ha:pg14-latest postgres -c 'config_file=/etc/postgresql/postgresql.conf'
# 进入交互式Prompt