当我尝试docker-compose build我的docker-compose.yml文件时,我得到了这个错误:
In file './docker-compose.yml' service 'version' doesn't have any configuration options.All top level keys in your docker-compose.yml must map to a dictionary of configuration
最后,使用来自官方网站的命令重新安装Docker。然而,当我运行命令docker -v或sudo docker -v时,我得到了响应:当我运行命令:sudo apt-get install docker-cedocker-ce-cli containerd.io时,我得到:containerd.io is already the newest version