vscode连接docker失败,报错Failed to connect. Is docker running
加user权限
出现Permission denied
首部添加sudo,增加权限
vscode调试docker容器时,apollo目录下文件为空
尝试了一遍以下所有代码
#进入目录
cd apollo
#启动docker容器 ./docker/scripts/cyber_start.sh
#进入容器 ./docker/scripts/cyber_into.sh
在容器中构建Apollo
sudo ./apollo.sh build cyber
在vscode中ctrl + alt + p,选attach to running Container...Apollo目录下显示了所有文件
buildtool install apollo-neo-routing-dev apollo-neo-prediction-dev apollo-neo-dreamview-dev apollo-neo-monitor-dev apollo-neo-planning-dev
sudo apt install apollo-neo-routing-dev apollo-neo-prediction-dev apollo-neo-dreamview-dev apollo-neo-monitor-dev apollo-neo-planning-dev
执行sudo apt install apollo-neo-routing-dev apollo-neo-prediction-dev apollo-neo-dreamview-dev apollo-neo-monitor-dev apollo-neo-planning-dev有几个软件包无法下载
![](https://i-blog.csdnimg.cn/blog_migrate/88470b6d444ea626d6997887b76d559f.png)
解决方法:
sudo apt-get update
sudo apt install apollo-neo-routing-dev apollo-neo-prediction-dev apollo-neo-dreamview-dev apollo-neo-monitor-dev apollo-neo-planning-dev --fix-missing