Image available in docker registry: https://hub.docker.com/r/oazapater/docker-liferay/
docker pull oazapater/liferay-base
docker run --name lep-db -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -e MYSQL_USER=liferay -e MYSQL_PASSWORD=liferay -e MYSQL_DATABASE=lportal $@ -d mysql:latest
docker run --name some-postgres -p 5432:5432 -e POSTGRES_PASSWORD=root POSTGRES_USER=root POSTGRES_DB=lportal $@ -d postgres
Check that exist lportal, if not create schema (MySQL) or database (PostgreSQL) with name lportal
docker run --name liferay -it --rm -p 80:8080 --link some-postgres -e JAVA_OPTS='-Xmx1024m -XX:MaxPermSize=512m' oazapater/liferay-base:v1
Point browser to docker machine ip (port 80)