Sentry monitors Docker deployment

1. Introduction

2. Deployment

  • 1. WindowsIn the environment, you also need to configure WSLthe environment (not Windowsskip)

    • turn on Windows 虚拟化andLinux 子系统(WSL2)

      image.png

      image.png

    • Ubuntu(乌班图)It is an operating system based on Debiandesktop applications Linux, which can be searched and downloaded online in the application, or installed through commands.

    • The command install (default install ubuntu linux) must be run on Windows 10 版本 2004and above (build 19041and above) or Windows 11to use the following:

      # 安装好 ubuntu 后,并启动,会要求输入账号密码
      $ wsl --install 
      
      # 上面等于下面,默认安装就是 Ubuntu
      $ wsl --install -d Ubuntu
      
      # 输出
      正在安装: Ubuntu  
      已安装 Ubuntu。  
      正在启动 Ubuntu...  
      Installing, this may take a few minutes...
      Please create a default UNIX user account. The username does not need to match your Windows username.  
      For more information visit: <https://aka.ms/wslusers>  
      Enter new UNIX username: xxxx  
      New password:  
      Retype new password:  
      passwd: password updated successfully  
      Installation successful!  
      To run a command as administrator (user "root"), use "sudo <command>".
      ...
      

      After installation, how to enter ubuntu?

      1. You can cmd/PowerShellexecute $ ubuntuthe command in to enter ubuntu.

      2. In the system search, search for ubuntuthe application and open it.

      [External link picture transfer failed, the source site may have an anti-theft link mechanism, it is recommended to save the picture and upload it directly (img-7p3ilgDl-1689156412262) (https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/d111dd5ab9fd4e4c9c1410f973524359~tplv-k3 u1fbpfcp-watermark.image?)]

    • Upgrade wsl1to wsl2(note that it must be opened with administrator privileges PowerShell)

      # 查看版本
      $ wsl -l -v
      
      # 全部子系统使用版本 2
      $ wsl --set-default-version 2
      
      # 指定某个子系统使用版本 2
      $ wsl --set-version Ubuntu 2
      

      image.png

    • switch default subsystem

      $ wslconfig /setdefault Ubuntu
      

      image.png

      image.png

  • 2. Docker installation and basic use

    • Note: If it is windowsinstallation, the original plan is that the machine needs to be installed Docker Desktop, turned on Ubuntu, linuxinstalled in the subsystem Docker, and then connected windowsto Docker Desktop.

      But the blogger found that after the machine is installed and Docker Desktophas Dockerthe environment, it is also possible to enter Ubuntu Linuxand enter $ docker -v, so let's use it like this.

  • 3. Download Sentrythe automatic deployment warehouse onpremise

Supongo que te gusta

Origin blog.csdn.net/zz00008888/article/details/131687669
Recomendado
Clasificación