diff --git a/src/tests/docker_commands_tests.erl b/src/tests/docker_commands_tests.erl index 673b3a6..6e7b4bd 100644 --- a/src/tests/docker_commands_tests.erl +++ b/src/tests/docker_commands_tests.erl @@ -32,7 +32,8 @@ test_get_containers/0 ]). --define(TEST_IMAGE, <<"docker.1ms.run/library/busybox:latest">>). +-define(TEST_IMAGE, <<"docker.1ms.run/library/nginx:latest">>). +-define(TEST_CMD, [<<"nginx">>, <<"-g">>, <<"daemon off;">>]). -spec test_all() -> ok. test_all() -> @@ -99,7 +100,7 @@ test_create_container_patches_options() -> create = #'DockerCreateOptions'{ config = #'DockerContainerConfig'{ image = ?TEST_IMAGE, - cmd = [<<"sleep">>, <<"300">>], + cmd = ?TEST_CMD, env = [<<"EXISTING_ENV=1">>], volumes = [<<"/data">>] }, @@ -261,7 +262,7 @@ minimal_params(Name) when is_binary(Name) -> create = #'DockerCreateOptions'{ config = #'DockerContainerConfig'{ image = ?TEST_IMAGE, - cmd = [<<"sleep">>, <<"300">>] + cmd = ?TEST_CMD } } }.