generated from admin/template
52 lines
2.9 KiB
Plaintext
52 lines
2.9 KiB
Plaintext
PS Z:\> Get-Service -Name postgresql*
|
|
PS Z:\> Start-Service -Name postgresql-x64-14 26.1.5
|
|
Start-Service : Не удается найти позиционный параметр, принимающий аргумент "26.1.5".
|
|
строка:1 знак:1
|
|
+ Start-Service -Name postgresql-x64-14 26.1.5
|
|
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
+ CategoryInfo : InvalidArgument: (:) [Start-Service], ParameterBindingException
|
|
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.StartServiceCommand
|
|
|
|
PS Z:\> docker ps
|
|
failed to connect to the docker API at npipe:////./pipe/dockerDesktopLinuxEngine; check if the path is correct and if the daemon is running: open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.
|
|
PS Z:\> docker ps -a
|
|
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
|
a9d7eff4a438 postgres "docker-entrypoint.s…" 6 weeks ago Exited (1) 6 weeks ago test
|
|
PS Z:\> docker start postgres
|
|
Error response from daemon: No such container: postgres
|
|
failed to start containers: postgres
|
|
PS Z:\> docker start test
|
|
test
|
|
PS Z:\> docker ps
|
|
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
|
PS Z:\> docker logs test
|
|
Error: Database is uninitialized and superuser password is not specified.
|
|
You must specify POSTGRES_PASSWORD to a non-empty value for the
|
|
superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
|
|
|
|
You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
|
|
connections without a password. This is *not* recommended.
|
|
|
|
See PostgreSQL documentation about "trust":
|
|
https://www.postgresql.org/docs/current/auth-trust.html
|
|
Error: Database is uninitialized and superuser password is not specified.
|
|
You must specify POSTGRES_PASSWORD to a non-empty value for the
|
|
superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
|
|
|
|
You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
|
|
connections without a password. This is *not* recommended.
|
|
|
|
See PostgreSQL documentation about "trust":
|
|
https://www.postgresql.org/docs/current/auth-trust.html
|
|
Error: Database is uninitialized and superuser password is not specified.
|
|
You must specify POSTGRES_PASSWORD to a non-empty value for the
|
|
superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
|
|
|
|
PS Z:\> docker rm test
|
|
test
|
|
PS Z:\> docker run --name test -p 5432:5432 -e POSTGRES_PASSWORD=pokedex_pass -d postgres
|
|
37830188239ba74b3fb1bdaaee83681304754f815f2ffeae507900b85f82b2d8
|
|
PS Z:\> docker ps
|
|
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
|
37830188239b postgres "docker-entrypoint.s…" 18 seconds ago Up 17 seconds 0.0.0.0:5432->5432/tcp, [::]:5432->5432/tcp test
|
|
PS Z:\> |