Creates a container and runs the PostgreSQL 10 image (docker.io/postgres:10) in it. The image will be downloaded if it doesn't exist locally.

sp_make_simple_pg(container_name, postgres_password = "postgres")

Arguments

container_name

character: a valid container name for the container

postgres_password

character: superuser password. Default is "postgres".

Value

Result of Docker command if it succeeded. Stops with an error message if it failed.

Examples

if (FALSE) { run_log <- sp_make_simple_pg("livestock") sp_docker_images_tibble() sp_docker_containers_tibble() }