Skip to content

Ubuntu_docker_vscode

ycrad edited this page Feb 21, 2024 · 4 revisions

Docker安装

  1. 使用如下命令安装git并获取stellauto-env项目:
    sudo apt install git
    git clone https://github.com/ycraurora/stellauto-env.git # 注意clone位置
    cd stellauto-env/docker
    sudo chmod a+x install_docker.sh startup.sh
    ./install_docker.sh
    ./startup.sh
    
  2. 使用如下命令查看Docker镜像与容器
    docker images
    docker ps -a
    

Vscode安装

Ubuntu下安装Visual Studio Code有两种方式:

  1. Vscode官网 下载最新版本的Visual Studio Code并通过如下命令安装:
    sudo dpkg -i $file_name.deb
    
    或者
    sudo apt install $file_name.deb
    
  2. 通过如下命令添加Visual Studio Code源并安装:
    sudo apt install curl
    curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
    sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
    sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
    sudo apt update
    sudo apt install code
    

后续安装扩展与连接Docker容器请参考此处

Clone this wiki locally