[Why] docker name and docker image name should be the same as the service name
Signed-off-by: Wu Zhende wuzhende666@163.com --- container/master-fluentd/build | 2 +- container/master-fluentd/start | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/container/master-fluentd/build b/container/master-fluentd/build index 3696a5f..7d0291d 100755 --- a/container/master-fluentd/build +++ b/container/master-fluentd/build @@ -3,4 +3,4 @@ # Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. # frozen_string_literal: true
-system 'docker build -t fluentd:alpine .' +system 'docker build -t master-fluentd:alpine .' diff --git a/container/master-fluentd/start b/container/master-fluentd/start index b7f9c73..b3e3dbb 100755 --- a/container/master-fluentd/start +++ b/container/master-fluentd/start @@ -5,12 +5,12 @@
require_relative '../defconfig.rb'
-docker_rm "fluentd" +docker_rm "master-fluentd"
cmd = %w[ docker run --restart=always - --name fluentd + --name master-fluentd -v /etc/localtime:/etc/localtime:ro -d -u 1090:1090 @@ -19,7 +19,7 @@ cmd = %w[ -e FLUENTD_CONF=docker-fluentd.conf --log-driver json-file --log-opt max-size=1g - fluentd:alpine + master-fluentd:alpine ] cmd += ['sh', '-c', 'umask 002 & fluentd -c /fluentd/etc/docker-fluentd.conf']