manager your images and publish: http://docs.docker.com/mac/step_six/
Create a Dockerfile
- sample: https://github.com/Chehao/docker-practice/blob/master/mytomcatbuild/Dockerfile
Docker Build
- $> docker build -t docker-whale .command takes the Dockerfile in the current directory, and builds an image called docker-whale on your local machine.
Tag it
- tag:
docker tag fa8293e27eb1 [namespace]/docker-whale:latest
- docker login --username=yourhubusername --email=youremail@company.com
- docker push [namespace]/docker-whale
- $> docker run -e AAA=BBB docker-whale
沒有留言:
張貼留言