TestProject Forum
Powered by leading experts in the test automation community

Docker Agents disconnecting after job completion

Can someone tell me why (where I can change) the docker containers are disconnecting after it run the job. It is causing some issues for me.

one of the issues is it seems to wipe out the chrome image or something after the first test runs causing the others test to fail.

here are a couple error messages
invalid session id
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:17:03’
System info: host: ‘52c271074763’, ip: ‘’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘4.19.121-linuxkit’, java.version: ‘13-ea’
Driver info: org.openqa.selenium.remote.RemoteWebDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 87.0.4280.88, chrome: {chromedriverVersion: 87.0.4280.88 (89e2380a3e36c…, userDataDir: /tmp/.com.google.Chrome.PohaVf}, goog:chromeOptions: {debuggerAddress: localhost:37267}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:virtualAuthenticators: true, webdriver.remote.sessionid: 6d2ed5971c5bcb1d43ff3994d4c…}
Session ID: 6d2ed5971c5bcb1d43ff3994d4c49db0
invalid session id

Failed to execute test ‘Partner 40 Dashboard Check’ on Chrome: chrome not reachable
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘0d8177b6d0a1’, ip: ‘’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘4.19.121-linuxkit’, java.version: ‘1.8.0_275’
Driver info: driver.version: unknown
remote stacktrace: #0 0x55c5c8ee5e79

Command duration or timeout: 73.61 seconds

WebDriverException: unknown error: session deleted because of page crash
invalid session id

If it makes a difference I am kicking all these jobs off (about 7) from Jenkins

example of 2 jobs from Jenkins

not sure if I need anything in the “wait to finish” section? I have zero as I want them to all run at once, not sure if this is correct.

Also side note, I am total noob when it comes to docker :wink:

Hello @marcel.bauer
Are you spinning up to containers for a specific job execution or are they permanent instances?
If they are designed only to perform a certain job, this will terminate once the job execution is done.

My goal would be permanent instances, but it sounds like from your comment that I have them set up to terminate. So somewhere I have an incorrect setting.

Again this is totally new to me, followed the blog and docs best I could.

Not sure what I need to change.

I have figured out another route. Using an API call that will run after our production deploy. Jenkins is not necessary as we deploy through Engine Yard. Thank you