Skip to content

Commit

Permalink
Use DOCKER_CONFIG to have creds in dind environment
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
  • Loading branch information
StefanScherer committed Feb 11, 2021
1 parent 407dcfd commit 2bd2d6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def runTests = { Map settings ->
-e 'DOCKER_TEST_API_VERSION=${apiVersion}' \\
--network ${testNetwork} \\
--volumes-from ${dindContainerName} \\
-v ~/.docker/config.json:/root/.docker/config.json \\
-v $DOCKER_CONFIG:/root/.docker/config.json \\
${testImage} \\
py.test -v -rxs --cov=docker --ignore=tests/ssh tests/
"""
Expand All @@ -111,7 +111,7 @@ def runTests = { Map settings ->
-e 'DOCKER_TEST_API_VERSION=${apiVersion}' \\
--network ${testNetwork} \\
--volumes-from ${dindContainerName} \\
-v ~/.docker/config.json:/root/.docker/config.json \\
-v $DOCKER_CONFIG:/root/.docker/config.json \\
${testImage} \\
py.test -v -rxs --cov=docker tests/ssh
"""
Expand Down

0 comments on commit 2bd2d6f

Please sign in to comment.