I’ve referred to this chart a few times in the past when wondering what’s the relation between distro A vs B. If you’ve never seen this before it’s well worth a look (and bookmark).
How true is Microsoft’s new found love for Linux?
I can’t help react to Microsoft’s new found love for Linux and Open Source with extreme suspicion. If you’ve been in the IT industry for a while then you’ll remember Steve Ballmer’s extreme vitriol for Linux, proclaiming “Linux is a cancer that attaches itself in an intellectual property sense to everything it touches“.
So where exactly does Microsoft stand? You can’t love it and hate it and the same time. Or maybe you can. I understand a change in leadership can bring a change of direction, but a radical 180 in opinion doesn’t exactly bring much confidence in their strategy. Is Microsoft finally acknowledging the rest of the world deploys their production systems to anything but Windows? Are they admitting defeat and looking for a slice of the Linux pie?
yum: which package contains x?
From here, useful command to find which yum package contains a given executable:
yum whatprovides */name
Setting a root password for a Docker image created with USER
If you have a Docker image created with a non-root user using USER in your Dockerfile, but you need to su to root to install or update something owned by root, without setting a root password you won’t be able to su to root.
Instead, add a password for root in your Dockerfile (this is described here):
RUN echo "root:Docker!" | chpasswd
This is probably not a good idea for security reasons (especially if you are sharing your Dockerfile), but I needed to create something in a container to reuse when creating other new containers, so did this one-time to get the file I needed and then reused the file in containers with another image without the root user/password.
