mysql --> mariadb --> postgresql

官网简介 https://www.postgresql.org/

使用的镜像名称 centos/postgresql-96-centos7

拉取镜像 centos/postgresql-96-centos7:9.6

镜像地址: index.docker.io/centos/postgresql-96-centos7 当前版本9.6

来源(镜像来源以及说明):https://dashboard.daocloud.io/packages/4437b11b-98f8-4650-bf56-ae5eeeb36c5a

执行命令

docker run -d --name postgresql_database -e  POSTGRESQL_ADMIN_PASSWORD=123456 -v /opt/data/postgresql:/var/lib/pgsql/data -p 5432:5432 centos/postgresql-96-centos7:9.6

说明:管理员数据库postgres 管理员用户名 postgres

postgresql_database容器命名

POSTGRESQL_ADMIN_PASSWORD 管理员密码

/opt/data/postgresql宿主机存放数据库的目录 将容器内数据库目录映射到宿主机 使用存储卷 便于持久化

centos/postgresql-96-centos7:9.6是 镜像名称和版本

-p 5432:5432 将容器端口映射到宿主机端口 前面的宿主机的端口 后面的是容器内部端口

如密码是123456

相关文档说明:

官网简介 https://www.postgresql.org/

镜像说明 https://dashboard.daocloud.io/packages/4437b11b-98f8-4650-bf56-ae5eeeb36c5a

官方镜像说明:https://hub.docker.com/_/postgres/

最新文章

  1. Oracle 中的sql函数以及分页
  2. Windows Server2008 下用于.NET Framework3.0版本的问题无法在IIS7中配置.NET Framework4.0节点的问题
  3. sublime 相关配置
  4. PHPExcel按单元格读取数据
  5. IOS第三天-新浪微博 - 版本新特性,OAuth授权认证
  6. 如何用 fiddler 调试线上代码
  7. struct大小
  8. C# 实现Oracle中的数据与Excel之间的转换
  9. RSA加密算法正确性证明
  10. Android 编程下 Activity 的创建和应用退出时的销毁
  11. ICE
  12. 根据Mob官网的天气预报接口写了一个简单的demo
  13. IPC- Posix与system v
  14. Url校验正则
  15. Cookies 和session
  16. Lintcode85-Insert Node in a Binary Search Tree-Easy
  17. elasticsearch 摘要
  18. C++ MFC棋牌类小游戏day2
  19. c# 操作文本文件
  20. Win10开发环境配置

热门文章

  1. Could not open ServletContext resource [/WEB-INF/xxx-servlet.xml]
  2. => js 中箭头函数使用总结
  3. 关于video.js不错的一篇博客,
  4. Python数据分析-Day2-Pandas模块
  5. lncRNA表达定量方法评估
  6. 尝试重新(多次反复)处理某个逻辑的示例(good)
  7. Okhttp 插入缓存拦截器 解析
  8. ubuntu+anaconda
  9. Pytorch半精度浮点型网络训练问题
  10. 2、OpenSsh