gpt-3.5-turbo-0125· OpenAI
WildChat-4.8M (AI2)
podman run --name postgres-checkmarx -e POSTGRESPASSWORD=postgrescheckmarx -e…
- User
podman run --name postgres-checkmarx -e POSTGRES_PASSWORD=postgrescheckmarx -e POSTGRES_DB=checkmarx -d -p 5433:5432 postgres
how can i specify schema here?
- Assistant
To specify a schema when running a PostgreSQL container using podman, you can add the
-e POSTGRES_USERenvironment variable to set the default schema to be used. You can set the value of thePOSTGRES_USERenvironment variable to be the desired schema name.Here is an example of how you can specify a schema named "myschema" when running the PostgreSQL container:
podman run --name postgres-checkmarx -e POSTGRES_PASSWORD=postgrescheckmarx -e POSTGRES_USER=myschema -e POSTGRES_DB=checkmarx -d -p 5433:5432 postgresThis way, when the container is initialized, it will create tables within the "myschema" schema by default.