sp_make_simple_pg: Make simple PostgreSQL container

Description Usage Arguments Value Examples

View source: R/sp_docker_functions.R

Description

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.

Usage

1
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

1
2
3
4
5
6
## Not run: 
run_log <- sp_make_simple_pg("livestock")
sp_docker_images_tibble()
sp_docker_containers_tibble()

## End(Not run)

smithjd/sqlpetr documentation built on Feb. 29, 2020, 8:15 p.m.