Since some time apt-key is deprecated and lot of Ubuntu 22.04 based systems throws the following warning:
You can easily fix this by properly installing Docker and Kubernetes apt archives public keys:
Take a look at /etc/apt/sources.list.d and find out if there is also an old source definition and if you find it, just delete it, the new one will suffice. You can also find out if there are duplicates if you run
sudo apt-get update. Just delete the old version which doesn’t contain signed-by inside.
If this is a fresh installation, you can continue with the following commands:
This will install the newest versions of Docker and kubectl on your desktop. If you take a careful look, it will also install the buildx plugin for Docker which greatly speeds up the builds. If you want to permanently active buildx, just run this command
export DOCKER_BUILDKIT=1 and if you want the old way of seeing the build progress, you can also do
However, if you already had these two installed, you just have to do the upgrade: