Da ich in letzter Zeit durch meine Entwicklung an unbreakable-joomla recht oft Docker, Glassfish 4.1 in der AWS nutze, hier ein paar der wichtigsten Befehle im Überblick:

 

Docker cheat sheet
=================================

## return a list of running docker containers
docker ps -a

## loggin as root to JEE server docker container
docker exec -it <container id here> bash

## cd to glassfish-install dir
cd /usr/local/glassfish4/glassfish/bin

## get docker ip
docker inspect <container_name> | grep IPAddress

## nginx location
/etc/nginx/

## explore port forwarding
netstat -nuptl

## stop all docker containers
docker stop `docker ps --no-trunc -aq`

## remove all docker containers
docker rm `docker ps --no-trunc -aq`

########################################### ##### BUILD AND DEPLOY DOCKER LOCALLY ##### ########################################### ## build image docker build -t <myDockerContainerName> . ## list local images docker images ## run docker image docker run -P -i -t <image-name z.B.: myDockerContainerName:latest> ## run docker image in background: -d docker run -d -P <image-name z.B.: myDockerContainerName:latest> ## copy file from docker image to docker host docker cp <containerId>:/file/path/within/container /host/path/target

Glassfish 4.1 cheat sheet
=================================
## initial setup:
asadmin start-domain
asadmin change-admin-password (initial is username:admin, password:[enter])
asadmin enable-secure-admin (use the admin username and password which you just set)
asadmin restart-domain
asadmin exit