-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated scripts to - use network instead of link - use podman or docker Signed-off-by: Vimal Kumar <vimal78@gmail.com>
- Loading branch information
Showing
3 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
|
||
CTR_RUN=${CTR_RUN:-docker} | ||
for c in grafana telegraf influxdb prometheus; do | ||
|
||
id=`docker ps -a -q --filter="name=$c" --format="{{.ID}}"` | ||
id=`${CTR_RUN} ps -a -q --filter="name=$c" --format="{{.ID}}"` | ||
if [ ! -z "$id" ] | ||
then | ||
echo Stopping and deleting $c | ||
docker rm $(docker stop $id) | ||
${CTR_RUN} rm $(${CTR_RUN} stop $id) | ||
fi | ||
done | ||
|