English 中文(简体)
集装箱没有开始
原标题:container failed to start

当我制造和启用后舱集装箱时,使用的指挥是:

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
...

我应当做些什么来开始集装箱?

问题回答

集装箱记录显示:

2023-06-28 02:42:35.007 GMT [44] FATAL:  unrecognized configuration parameter "restart".

which is our clue to the source of your problem.

<代码>-restart=always 段 次 页 次 特定码头的图像名称由指挥,相反,它正被传入集装箱,因为指挥权在启动后将予以执行,以代替对这一形象的默认指挥。

http://docs.docker.com/engine/参比/run/“rel=“nofollow noreferer”>docker打包/a>:

$ docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]

为此,改变你的指挥,以便<代码>--restart=always。 备选办法在<代码>[IMAGE]部分之前:

docker run --restart=always --name postgresql -e POSTGRES_PASSWORD=123456 -p 5432:5432 -v /mydate/postgressql/data:/var/lib/postgresql/data --restart=always -d postgres:latest

It can be anywhere after run and before postgres:latest. I just put it at the front here so it can be seen without horizonal scrolling.





相关问题
Silverlight: Add same UserControl to more than one Canvas

I have a bunch of UserControls ( MyUserControl ) that I want to have a user manually add to one or more Canvases. One instance of a UserControl cannot be a child element of more than one container (...

c++ templated container scanner

here s today s dilemma: suppose I ve class A{ public: virtual void doit() = 0; } then various subclasses of A, all implementing their good doit method. Now suppose I want to write a function ...

Multi-Dimensional Container in Java

I searched around on Google, but I was unable to find any libraries for a multi-dimensional container in Java (preferably one that supports generics as well). I could easily write one (in fact, I ...

c# stack queue combination

is there in C# some already defined generic container which can be used as Stack and as Queue at the same time? I just want to be able to append elements either to the end, or to the front of the ...

Custom container requirement to work with Qt s foreach

What is the bare minimum amount of code to create a custom container that would work with Qt foreach macro? I have this so far template< class T > class MyList { public: class iterator { ...

Having many stacks with different types

I m making a C program that needs to use two stacks. One needs to hold chars, the other needs to hold doubles. I have two structs, node and stack: struct node { double value; struct node *...

热门标签