DEV Community

Muhammad Zeeshan
Muhammad Zeeshan

Posted on

Running Apache AGE using docker

This blog is the continuation of last blog. In this blog we will run Apache AGE using docker. In our last blog we worked on setup of docker. So, if you are new to docker you can first follow this blog. And then start working on this one.

Apache AGE

Apache AGE, which is an extension of PostgreSQL. It's a graphical representation of relational database. You can setup and install AGE on docker.

Run the command

docker pull apache/age
Enter fullscreen mode Exit fullscreen mode

If your docker is setup properly it will pull Apache AGE from the docker hub. In our last blog we also setup docker hub.
If everything is successful it will show an output of this type.

installed image
You have successfully pulled the apache AGE from the doecker hub. Now its time to configure and run the docker image.
And for that we need to setup a few things. like port, User, password and database. To setup these all you can run the commands.

docker run \
    --name age  \
    -p 5455:5432 \
    -e POSTGRES_USER=postgresUser \
    -e POSTGRES_PASSWORD=postgresPW \
    -e POSTGRES_DB=postgresDB \
    -d \
    apache/age
Enter fullscreen mode Exit fullscreen mode

If it successful, it will return the container id. This will setup an and run the apache AGE container. To check the running container you can run the commad.

docker ps
Enter fullscreen mode Exit fullscreen mode

This will show all the running containers.
To see the list of all containers irrespective of those are running or not you can add -a flag to the above command.

docker ps -a
Enter fullscreen mode Exit fullscreen mode

Now to start or stop a specific container you can run the command.

docker stop container-name
docker start container-name
Enter fullscreen mode Exit fullscreen mode

To check all the images that you have on your machine locally you can run the command.

docker images
Enter fullscreen mode Exit fullscreen mode

That's all for this time. Happy learning!

References

https://hub.docker.com/r/apache/age

Top comments (0)