Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

docker-jhipster

Python

Ruby

NodeJS

Java8

Go

createrun container

$ docker run -d -v <folder_proj>:/developer -v ~/.m2:/home/developer/.m2 \ 
      -u $(id -u) -p 8080:8080 -p 3000:3000 -p 3001:3001 cjvaz/developer

exec command in container

$ docker exec -i -t <container_name> bash

get IP address

$ docker inspect --format '{{ .NetworkSettings.IPAddress }}'" <container_name>

get Port mapping

$ inspect -f '{{range $p, $conf := .NetworkSettings.Ports}} {{$p}} -> \ 
      {{(index $conf 0).HostPort}} {{end}}' <container_name>

delete stopped containers

$ docker rm -v `docker ps -a -q -f status=exited`

delete dangling images

$ docker rmi $(docker images -q -f dangling=true)

delete all images

$ docker rmi $(docker images -q)
Docker Pull Command
Owner
cjvaz
Source Repository

Comments (0)