# That is pretty nice, but not so good if we can only connect to EPAS
# from inside the container. How do we export the port so that someone
# outside the container can connect to EPAS? Not hard at all, we just
# map the port inside the container to a port on the host. So, let's
# kill our current container and restart with a port mapping.
docker rm -f epas
# Start the container mapping port 5444 on the Docker host to port 5444
# inside the container.
docker run -d --name epas -p 5444:5444 my-repo/epas:9.5
# Now we can connect to the EPAS database from the host via psql or
# your database client of choice.
psql -p 5444 -d edb -U enterprisedb
Congratulations! You've created your first Docker container for EPAS. This is just the beginning though. Docker allows specifying "volumes" so that your container can leverage shared storage. We can also make the container "smart" so that it starts as a master or starts as a replica of another database. More to come in future quickstarts.