docker creates image and SDG creates application

1.docker creates a mirror image

1.1. View image

sudo docker image ls

1.2. Make a mirror image

  • Create based on an existing image [that is, copy one]

    parameter meaning
    old mirror name
    v1 tag
    os-harbor-svc.default.svc.cloudos:0000/env Cloud project path
    -- old:v1 已有镜像名称
    -- new:v2 新创建镜像名称
    sudo docker tag old:image1 os-harbor-svc.cloudos:0000/env/new:v2
    
  • Check the mirror image again and find that there is one more
    insert image description here

1.3. Upload image

  • Log in to the warehouse
    sudo docker login  https://os-harbor-svc.cloudos:0000
    
  • Submit a mirror
    sudo docker push os-harbor-svc.cloudos:0000/env/new:v2
    
  • pull image
    sudo docker pull os-harbor-svc.cloudos:0000/env/new:v2
    

2. SDG creation application

2.2 Create a namespace

  • step one
    insert image description here
  • step two
    insert image description here
  • step three
    insert image description here

2.2 Application creation group

  • step one
    insert image description here
  • step two
    insert image description here

2.3 Create an application

  • Step 1 [Enter from the created application group and select "Create Application"]
    insert image description here
  • Step 2 [Select the container image type to start creating]
    insert image description here
  • Set application configuration
    insert image description here
  • Server Access Settings
    insert image description here
  • Click OK to start the application

3. Remote control

3.1 Click on the application name

insert image description here

3.2 Click on the instance name

insert image description here

3.3 Click Remote

insert image description here

3.4 Entering the environment

  • Knock command to enter your own container
    exec bash
    

insert image description here

  • After that, you can run your own code normally

Guess you like

Origin blog.csdn.net/m0_46926492/article/details/131958962