Updated on 2023-12-06 GMT+08:00

Using YAML to Run Docker Commands

1
2
3
4
5
6
7
version: 2.0 # The value must be 2.0.
steps:
  BUILD:
    - docker:
          inputs:
            command: |
              docker pull swr.xx-xxxxx-x.myxxcloud.com/codeci/dockerindocker:dockerindocker18.09-1.3.2

Parameter

Type

Description

Mandatory

Default Value

command

string

Each command takes up one line. Supported docker commands: build, tag, push, pull, login, logout, and save.

Yes

None