Installing Container

To test that the Docker software is correctly installed, you can run the following from PowerShell:

docker version

The following will download the VLDB Greenplum Container to Docker Desktop:

docker pull docker.io/vldbuk/gpdb_demo_repo:gpdb_demo

And now we can start the container running in the background with the following:

docker container run -ti -d --privileged=true -p 5432:5432 `
docker.io/vldbuk/gpdb_demo_repo:gpdb_demo "/usr/lib/systemd/systemd"

Do note that this maps port 5432 to the container and will automatically forward 5432 connection strings to the container for SQL access. You can, if desired, choose a different port instead, by replacing the above with X:5432, where X is your desired port.

Now that the container is installed, we can get the container ID and use this to connect to the container:

${CONTAINER_ID}=$( docker ps -a | select-object -last 1 ).split(' ')[0]
docker exec -it ${CONTAINER_ID} bash

From here, you can change to the gpadmin user and start the Greenplum software running:

su gpadmin
gpstart

Last updated