Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description

Create a Docker image to run Bagarino as server


Install Docker.

Note: On OS X I recommend to follow this guide. Chris knows what he is doing!

TL;DR, I just want an instance up-and-running

Start the application

Launch Bagarino docker image from docker hub

docker pull yankedev/bagarino-docker
docker run -d -v ~/bagarino/:/bagarino-volume -p 8080:8080 -p 9000:9000 -p 35729:35729 -p 4022:22 -t yankedev/bagarino-docker

Latest version of this image is continuosly rebuilt at every push on the master branch of bagarino-docker.
Otherwise, on docker hub you can also find the build now button: see

Test the instance

docker ps
docker logs CONTAINER_ID

From your client machine open your browser to http://localhost:8080/admin

Note: if you run docker within a VM (e.g. VirtualBox, Vagrant, etc) your client is within the VM itself. If you want to connect from your physical machine, verify VM settings are forward ports to it.

SSH configuration (currently not working :-()

You can now connect to your docker container with SSH. You can connect as "root/bagarino" or as "bagarino/bagarino", and we recommand you use the "bagarino" user as some of the tool used are not meant to be run by the root user.

Start by adding your SSH public key to the Docker container:

cat ~/.ssh/ | ssh -p 4022 bagarino@localhost 'mkdir ~/.ssh && cat >> ~/.ssh/authorized_keys'

You can now connect to the Docker container:

ssh -p 4022 bagarino@localhost

Create a new version of the image

You can build a local image using the following command:



Bagarino is running using 2 containers. One for the Postgres DB and one for the Java server. Data are persisted on the client volume.
This github project is used to create the bagarino server image only. Postgres container project hasn't been prepared yet.


  • If you want to integrate a container with a host process manager, start the daemon with -r=false then use docker start -a.

  • If you want to expose container ports through the host, see the exposing ports section.


docker ps -a shows running and stopped containers.

Entering a Docker Container

I know using an sshd daemon is considered evil, but, as of today, I still use this method.

More info and alternatives could be found at the docker-cheat-sheet

Docker Pull Command
Source Repository