티스토리 뷰

batch was fail every 4~5 times per day

 

 

all of fail reason are same.

 

docker: Error response from daemon: service endpoint with name {randomName} already exists.

 

common error alarm make developer insensitive batch fail.

 

root cause of above error is docker bridge network connection is still connected even docker container removed.

 

for long term, we should check why bridge connection is alive even docker container removed. but batch slave is used by several team.

 

It is difficult to clarify which team batch makes above issue.

 

So, i decided to assign docker name to clarify vendor batch make zoombie bridge connection or not and to escape random name already exist error.

 

bash shell for generate container name

runningTimeStamp=`/bin/date +%Y%m%d%H%M%S`

jobName="$JOB_NAME"

containerName="$jobName-$runningTimeStamp"

 

 

docker run --name $containerName .....

 

공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함