Not able to stop dnsmasq service already running in my CI build enviornment

docker

#1

We are trying to run some tests on our docker containers and for that we need to hook up a docker container to host’s port 53. Now, it seems like the box in which CI is running our containers has dnsmasq already bind to 53 which doesn’t allow our container to bind with port 53. We tried this command to kill dnsmasq (sudo pkill -f dnsmasq) in pre for tests, but it exists with exit code 143, which ultimately fails the build. Can someone help. Thanks.


#2