23 lines
811 B
Bash
23 lines
811 B
Bash
# 构建Docker镜像 -t 标志用于指定镜像名称和标签 | . 表示当前目录作为构建上下文(即 Dockerfile 和代码所在目录)
|
|
docker build -t uswccr.ccs.tencentyun.com/lessie/lessie-sourcing-agents:v0.1 .
|
|
|
|
|
|
# 查看镜像
|
|
docker images
|
|
# REPOSITORY TAG IMAGE ID CREATED SIZE
|
|
# myapp latest 9f4e919c2146 4 minutes ago 1.55GB
|
|
|
|
|
|
docker login uswccr.ccs.tencentyun.com -u 100038894437
|
|
|
|
docker push uswccr.ccs.tencentyun.com/lessie/lessie-sourcing-agents:v0.1
|
|
|
|
|
|
# 登录
|
|
docker login uswccr.ccs.tencentyun.com -u 100038894437 回车后输出密码: h8H1o6Fd!HLXn
|
|
|
|
# 打 tag
|
|
docker tag lessie/python:3.12.9-base uswccr.ccs.tencentyun.com/lessie/python:3.12.9-base
|
|
|
|
# 推送
|
|
docker push uswccr.ccs.tencentyun.com/lessie/python:3.12.9-base |