Skip to content

Instantly share code, notes, and snippets.

@jinnabaalu
Created December 22, 2016 04:06
Show Gist options
  • Save jinnabaalu/5a8432efe27de78da506f160fcb4eb13 to your computer and use it in GitHub Desktop.
Save jinnabaalu/5a8432efe27de78da506f160fcb4eb13 to your computer and use it in GitHub Desktop.
Docker-Jhipster Container
docker run --name wisestep-microservices -v /d/docker/docker-jhipster:/home/jhipster/app -v ~/.m2:/home/jhipster/.m2 -p 8060:8060 -p 8030:8030 -p 8069:8069 -p 8068:8
068 -p 8067:8067 -p 8050:8050 -d -t jhipster/jhipster
Docker is application packaging technology
whole applications into a single image
containerization platform
Containerzation and vertualization
7411307977
docker related Commands
> docker run <image>
Exx: > docker run tutum/helloworld
> docker run -d --name <web1> -p <8081>:<80> <jinna/helloworld>
Ex : > docker run -d --name web1 -p 8081:80 jinna/helloworld
> docker pull <image-name>:<tag> (image name is the name of the imane, tag: version of the image by default tag would be latest)
> docker images (list of images our system)
> docker run <image-name>:<tag>
OR
> docker run <image-id>
> docker ps (list of containers running)
> docker ps -a (list of all container even if they are not running)
> docker stop <container-id>/<container-name>
> docker start <container-id>/<container-name>
Delete container
> delete rm <container-name> (after stop)
Delete Image
> docker rmi <image-id>
> docker rmi <repo:tag>
To run multiple
docker run -d --name web1 -p 8081:80 jinna/helloworld
docker run -d --name web2 -p 8082:80 jinna/helloworld
docker run -d --name web3 -p 8083:80 jinna/helloworld
TO view the file or edit
code filename.extension
to come backto parent directory in docker
cd -
Docker images list
docker images
TO clear
clear
there are many ways to run the container
As the task container > docker run
Interactive container > docker run -it
Backgroud container > docker run -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment