Re:Alpine Linux Docker images have NULL for root password
by asdfe on Wednesday May 08, 2019 @04:10PM
(#19862414)
This is not the official Alpine image, it is Glider Labs one.
[ Parent
| on HN ]
Re:Alpine Linux Docker images have NULL for root password
by deathanatos on Wednesday May 08, 2019 @05:36PM
(#19863214)
https://github.com/docker-library/official-images/pull/5516
The official image was also affected, too, it appears.
Re:Alpine Linux Docker images have NULL for root password
by silverwind on Wednesday May 08, 2019 @04:30PM
(#19862594)
Yeah, official alpine one looks fine
$ docker run -it alpine head -1 /etc/shadow
root:!::0:::::
Re:Alpine Linux Docker images have NULL for root password
by LukeShu on Wednesday May 08, 2019 @05:03PM
(#19862915)
Going through alpine:3.1 to alpine:3.9, then alpine:edge, I see that the following versions have the problem: 3.3, 3.4, 3.5, and 3.8.
Re:Alpine Linux Docker images have NULL for root password
by deathanatos on Wednesday May 08, 2019 @05:19PM
(#19863073)
3.8 looks fine?
ยป docker run --rm -ti alpine:3.8 sh -c 'cat /etc/shadow | grep root'
root:!::0:::::
The others you mention though, I agree, they look less than fine.Also, has anyone reported this to the official Alpine repository? (since the Talos disclosure seems to be confused; it says official but has URLs to the Glider Labs version?)
Edit: Ah, so here's the relevant GitHub issue for official Alpine Linux docker: https://github.com/docker-library/official-images/pull/5516
<=3.5 is no longer supported. Everything newer is patched.
Re:Alpine Linux Docker images have NULL for root password
by kamane on Thursday May 09, 2019 @06:13AM
(#19866831)
What should be done to prevent NULL password then? Like just setting a custom strong password for root user in alpine container Dockerfile ? If yes, could you share the recipe how to correctly do it?