在docker hub建立自己的儲存空間(registry)。練習上傳(push)在本地出的映像檔(image)到自己的儲存空間下的儲存庫(repository)。
step1 write a dockerfile
1 | FROM node:12.22.1-alpine |
step2 create a image
1 | docker build -t node12-app . |
step3 run image
give args
open on localhost
step4 set image with tag
local image name : node12-app
my docker hub / repository name : jason0103/node12-app
version : 1
1 |
|
step5
push the image to your registry of docker hub
1 |
|