python 3.x - "Cannot connect to server 'datahost': [Errno -2] Name or service not known", gaierror(-2, 'Name or service not known') -




i'm getting error gitlab-ci. @ test stage, pull down latest docker, , run docker run $latestimage python /path/to/test.py, , error message came pytds pytds.tds.loginerror. didn't error on local machine because have set x.x.x.x datahost in local /etc/hosts. added 1 more docker command before test command: docker run -i --add-host datahost:x.x.x.x $latestimage cat /etc/hosts , can see datahost has been added image. however, when run test, still got error. don't know if there's else left, current research online should "forgot set host" problem.





wiki

Comments