全部指南

Quick start

Create a project and deploy your first service.

  1. 1Create a project

    Console → New project, or use the CLI. Pick the region closest to your users.

    bash
    oc login
    oc project create my-app --link
  2. 2Deploy (pick one)

    ① Connect GitHub: Project → Add service → GitHub repository (deploys on push) ② From this folder: oc up --wait (builds even without a Dockerfile) ③ Upload a folder or zip in the console: Add service → Upload source

    bash
    oc login
    oc project create my-app --link
    oc up --wait
  3. 3If you already have an image

    Public images work as is. For private images, connect the registry in Workspace settings → Registries first.

    bash
    oc service create --image nginxinc/nginx-unprivileged:1.27-alpine --port 8080 --wait
  4. 4Logs and status

    bash
    oc logs -f
    oc service info

相關指南