keywords: automated deployment, docker, docker-compose, java, tomcat, weblogic
Java Docker Images
Apache-Tomcat Docker Images
Database Docker Images
Oracle WebLogic Docker Images
Spluk Docker Images
Then please
Contact: arnold.somogyi@gmail.com
Before the build, you must download the Oracle JDK
install kit from the Oracle website and accept the license indicated on that page.
Copyright (c) 2022 Remal Software, Arnold Somogyi. All rights reserved.
BSD (2-clause) licensed
Start Docker daemon on Centos: sudo systemctl start docker
Login to Docker Image Registry: docker -v login https://docker-registry.example.com/v2
Logging
docker logs -f <container-name> | tee output.log
docker-compose logs -f | grep -i 'error\|invalid'
Login to a container
docker exec -it <container-name> /bin/bash
docker exec -it -u root -w /root <container-name> /bin/bash
Run the image without executing the default CMD
command: docker run -d --name <container-name> <image-name>:<image-version> tail -f /dev/null
Oracle Database in Docker
docker run -p 1521:1521 --network="host" --name oracle-db store/oracle/database-enterprise:12.2.0.1
1521
ORCLPDB1.localdomain
SYS as SYSDBA
Oradoc_db1
Container IP: docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' <container-name>
Docker clean-up
docker info | grep "Docker Root Dir"
du -h --max-depth=1 <root-dir>
docker system df
docker container ls --filter "status=exited" -aq
docker container rm $(docker container ls --filter "status=exited" -aq)
docker rmi $(docker image ls -aq)
docker rmi $(docker image ls -aq --filter "dangling=true")
docker volume rm $(docker volume ls -q)
docker network rm <NETWORK_ID>
docker system prune --volumes
alias ll="ls -all"
alias alias li="docker image ls | (sed -u 1q; sort -n -k1)"
alias lc="docker container ls -a"
alias cs='docker container stop $(docker container ls -a -q)'
alias rmc='docker container rm $(docker container ls -a -q)'
alias rmi='docker volume rm $(docker volume ls -qf dangling=true) ; docker rmi $(docker image ls -qf dangling=true)'