first commit
This commit is contained in:
16
命令记录.txt
Normal file
16
命令记录.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
构建打包镜像
|
||||
docker build -t 2271608011/bmygit:v1.2 .
|
||||
|
||||
进入镜像
|
||||
docker run -it 2271608011/bmygit:v1.2 /bin/bash
|
||||
|
||||
登录
|
||||
docker login
|
||||
|
||||
给镜像打 tag
|
||||
docker tag bmy/git:v1.2 2271608011/bmy/git:v1.2
|
||||
|
||||
docker tag <要push的镜像> <传到dockerhub上的路径>
|
||||
|
||||
推送
|
||||
docker push 2271608011/bmygit:v1.2
|
||||
Reference in New Issue
Block a user