docker打包上传到hub的思路
构建 Dockerfile
创建本地docker
docker build -t docker-node-app .
docker先本地跑起来
docker run -it -p 3000:3000 docker-node-app
docker login
docker commit <CONTAINER> <hub-user>/<repo-name>:<tag>
docker push <hub-user>/<repo-name>:<tag>
构建 Dockerfile
创建本地docker
docker build -t docker-node-app .
docker先本地跑起来
docker run -it -p 3000:3000 docker-node-app
docker login
docker commit <CONTAINER> <hub-user>/<repo-name>:<tag>
docker push <hub-user>/<repo-name>:<tag>
评论区