get the correct base64 from docker config (missing array subkey)

This commit is contained in:
Rouven Hurling
2018-10-19 15:59:40 +02:00
parent 9d14283f35
commit 6811d05bcf
@@ -785,7 +785,7 @@ class DockerClient {
if ( empty( $dockerConfig['auths'] ) || empty( $dockerConfig['auths'][ $matches[1] ] ) ) {
return false;
}
list($user, $password) = explode(':', base64_decode($dockerConfig['auths'][ $matches[1] ]));
list($user, $password) = explode(':', base64_decode($dockerConfig['auths'][ $matches[1] ]['auth']));
return [
'username' => $user,