Use --password-stdin for docker login in integration tests instead of -p
@@ -141,7 +141,8 @@ public class LocalRegistry extends ExternalResource {
private void login() throws IOException, InterruptedException {
if (username != null && password != null) {
- new Command("docker", "login", "localhost:" + port, "-u", username, "-p", password).run();
+ new Command("docker", "login", "localhost:" + port, "-u", username, "--password-stdin")
+ .run(password.getBytes(StandardCharsets.UTF_8));
}
}
