Docker Notes
- Build Docker Image
- Goto directory where your application code is stored.
$ cd docker-app
$ docker image build -t sea/ctr-demo:2 .
- Local docker image
$ docker image is sea/ctr-demo:2
- Push docker image to public repo
$ docker image push sea/ctr-demo:2
- Run docker image
$ docker container run -d -name web -p 8000:8080 ssa/ctr-demo:2
Comments
Post a Comment