问题:如何在具有卷的ARM体系结构上在Docker上运行TimeScaleDB?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了问题:如何在具有卷的ARM体系结构上在Docker上运行TimeScaleDB?相关的知识,希望对你有一定的参考价值。

如何在ARM体系结构上使用暴露给主机的Postgres / TimescaleDB数据卷在Docker上运行TimeScale?

我的想法是做以下事情:

docker run -d --restart always 
--name timescaledb 
-p 5432:5432 
-e POSTGRES_PASSWORD=password 
-e POSTGRES_USER=user 
-e POSTGRES_DB=databasename 
-v /etc/postgresql:$PWD/postgres/etc 
-v /var/log/postgresql:$PWD/postgres/log 
-v /var/lib/postgresql:$PWD/postgres/lib 
timescale/timescaledb

但是,TimescaleDB似乎停留在启动/重启过程中:

enter image description here

你有什么建议/想法我做错了吗?

问题也可以在Github上找到:https://github.com/timescale/timescaledb-docker/issues/23

docker log(docker logs timescaledb)告诉以下内容:

standard_init_linux.go:190: exec user process caused "exec format error"

运行

docker run 
--name timescaledb 
-p 5432:5432 
-e POSTGRES_PASSWORD=password 
-e POSTGRES_USER=user 
-e POSTGRES_DB=databasename 
timescale/timescaledb

返回相同的错误:standard_init_linux.go:190: exec user process caused "exec format error"

答案

我将检查图像是否支持ARM体系结构。跟进更多信息,请访问:https://github.com/timescale/timescaledb-docker/issues/25

以上是关于问题:如何在具有卷的ARM体系结构上在Docker上运行TimeScaleDB?的主要内容,如果未能解决你的问题,请参考以下文章