当我制造和启用后舱集装箱时,使用的指挥是:
docker pull postgres:latest
mkdir -p /mydate/postgressql/data
docker run --name postgresql -e POSTGRES_PASSWORD=123456 -p 5432:5432 -v /mydate/postgressql/data:/var/lib/postgresql/data -d postgres:latest --restart=always
但是,集装箱码头开端,view集装箱记录仪
docker logs postgresql
Success. You can now start the database server using:
pg_ctl -D /var/lib/postgresql/data -l logfile start
initdb: warning: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.
Success. You can now start the database server using:
pg_ctl -D /var/lib/postgresql/data -l logfile start
initdb: warning: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or--auth-local and --auth-host, the next time you run initdb.
2023-06-28 02:42:35.007 GMT [44] FATAL: unrecognized configuration parameter "restart"
PostgreSQL Database directory appears to contain a database; Skipping initialization
...
我应当做些什么来开始集装箱?