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
- Do you like organizing?
- Do you like to code?
- Do you like helping people?
- Do you like helping others code?
- Do you like fixing bugs?
Then please
- Open an issue
- Open a pull request
- Contact with us
Contact: [email protected]
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
- Write log to file and screen:
docker logs -f <container-name> | tee output.log
- Show only errors and warnings:
docker-compose logs -f | grep -i 'error\|invalid'
- Write log to file and screen:
-
Login to a container
- As an ordinary user:
docker exec -it <container-name> /bin/bash
- As root:
docker exec -it -u root -w /root <container-name> /bin/bash
- As an ordinary user:
-
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
- Run:
docker run -p 1521:1521 --network="host" --name oracle-db store/oracle/database-enterprise:12.2.0.1
- Port:
1521
- Schema:
ORCLPDB1.localdomain
- User:
SYS as SYSDBA
- Password:
Oradoc_db1
- Run:
-
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
- Containers info:
docker container ls --filter "status=exited" -aq
- Clean-up docker containers:
docker container rm $(docker container ls --filter "status=exited" -aq)
- Delete unused images:
docker rmi $(docker image ls -aq)
- Delete dangling images:
docker rmi $(docker image ls -aq --filter "dangling=true")
- Clean-up docker volumes:
docker volume rm $(docker volume ls -q)
- Cleanup docker networks:
docker network rm <NETWORK_ID>
- Docker prune:
docker system prune --volumes
- Containers info:
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)'