Build a Docker image of Linux/Java runtime environment container from shell command (including force remove of intermediary container) from shell command line:
docker-compose build --force-rm
Build dockerfile (without docker-compose help) from directory from shell command line:
docker build -t agnet/cybnity-javaruntime-distribution .
Scan image vulnerabilities from shell command line:
docker scan agnet/cybnity-javaruntime-distribution
Run it from shell command line:
docker run -it --rm agnet/cybnity-javaruntime-distribution
Run a docker container without shell console (as a daemon without interaction) or without -d argument to maintain shell console opened from shell command line:
docker-compose up -d
Check that the container is running from shell command line:
docker ps
Read logs from shell command line:
docker-compose logs -f
Kill container from shell command line:
docker-compose kill
or
docker kill agnet/cybnity-javaruntime-distribution
Create tag for built java container distribution specific to CYBNITY technology from shell command line:
docker tag cybnity-javaruntime-distribution agnet/cybnity-javaruntime-distribution:latest
Push docker image to online CYBNITY private Docker repository from shell command line:
docker push agnet/cybnity-javaruntime-distribution:latest