C3rd
GitLab: docker DNS issue and container already in use
Posted: 6 May 2020, 21:46pm - Wednesday
I decided to create another stage to test our API in GitLab CI runner using postman/newman
. I made it work but there are issues from time to time like DNS issue and "container already in use" (see screenshot below). The common error that occurs most of the time is the DNS issue.
In my various experiments, I managed to resolve the `container already in use` issue by adding the container name with commit ID from gitlab.
However, since I implemented the commit ID on the container, the DNS issue reduced from 8/10 fails to 2/10 fails. It still fail time to time, its not perfect but for now its tolerable. I hope there's a better solution.