Docker與Ubuntu的兼容性問題主要涉及系統版本、內核版本及安裝配置等方面,具體如下:
uname -r
命令檢查內核版本。curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update && sudo apt-get install docker-ce docker-ce-cli containerd.io