# Create data directory.
mkdir -p ~/postgresql_data
# Download and start container.
docker run -d \
--name postgres \
-p 5433:5432 \
-e POSTGRES_PASSWORD=postgres \
-e PGDATA=/var/lib/postgresql/data/pgdata \
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG USERNAME=ownage | |
ARG USER_UID=1000 | |
ARG USER_GID=$USER_UID | |
FROM ubuntu:22.04 | |
ARG USERNAME | |
ARG USER_UID | |
ARG USER_GID |