Install the most recent stable version of docker https://docs.docker.com/installation/
Install the most recent stable version of docker-compose https://docs.docker.com/compose/install/
Images are based on the official Java Alpine (OpenJDK 8) image. If you want to build the Karaf image run:
sh build.sh
or
docker build -t karaf .
If you want to build the container for a specific version of Karaf you can configure it with the KARAF_VERSION
arg:
docker build --build-arg KARAF_VERSION=4.2.0 -t "karaf:4.2.0" karaf
docker-compose run karaf karaf
or
docker run --name karaf karaf karaf
docker-compose up
or
docker run --name karaf
docker-compose kill
or
docker kill karaf
8101
8888
1099
(default, not exposed to host) and 44444
(default, not exposed to host)Edit the docker-compose.yml
file to edit port settings.