diff --git a/lib/kitchen/driver/docker.rb b/lib/kitchen/driver/docker.rb index fc5fd859..4e08a7f5 100644 --- a/lib/kitchen/driver/docker.rb +++ b/lib/kitchen/driver/docker.rb @@ -274,7 +274,7 @@ def build_dockerfile when 'alpine' user = <<-eos RUN if ! getent passwd #{username}; then \ - adduser -g "kitchen user" -h #{homedir} -s /bin/ash #{username} && usermod -p * #{username}; \ + adduser -g "kitchen user" -h #{homedir} -s /bin/ash -D #{username} && usermod -p '*' #{username}; \ fi eos else