Skip to content

Commit e7bdfe6

Browse files
StefanSchereraiordache
authored andcommitted
Use DOCKER_CONFIG to have creds in dind environment
Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
1 parent 94f9627 commit e7bdfe6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def runTests = { Map settings ->
9595
-e 'DOCKER_TEST_API_VERSION=${apiVersion}' \\
9696
--network ${testNetwork} \\
9797
--volumes-from ${dindContainerName} \\
98-
-v ~/.docker/config.json:/root/.docker/config.json \\
98+
-v $DOCKER_CONFIG/config.json:/root/.docker/config.json \\
9999
${testImage} \\
100100
py.test -v -rxs --cov=docker --ignore=tests/ssh tests/
101101
"""
@@ -111,7 +111,7 @@ def runTests = { Map settings ->
111111
-e 'DOCKER_TEST_API_VERSION=${apiVersion}' \\
112112
--network ${testNetwork} \\
113113
--volumes-from ${dindContainerName} \\
114-
-v ~/.docker/config.json:/root/.docker/config.json \\
114+
-v $DOCKER_CONFIG/config.json:/root/.docker/config.json \\
115115
${testImage} \\
116116
py.test -v -rxs --cov=docker tests/ssh
117117
"""

0 commit comments

Comments
 (0)