Comments (3)
最近做了一个专门用于教学的镜像. 集成了140个扩展插件, 提升业务开发效率, 解决业务问题等, 涉及各个领域, 参考:
如果你发现镜像的问题, 或者想集成其他插件, 欢迎发issue给我, 我会尽快回复.
希望这个镜像能够降低学习数据库的门槛, 帮助高校和培训机构以及学习者能够有统一的学习环境, 不再为环境问题而影响教学练, 让大家可以快速的接触到各个领域的知识, 为**数据库人才培养添砖加瓦.
我已经配置为公开模式, 任何人都可以下载学习使用, 已经集成到云起实验室, 云起实验永久免费提供给PostgreSQL数据库开源爱好者、PostgreSQL数据库教学.
# 拉取镜像, 第一次拉取一次即可.
docker pull registry.cn-hangzhou.aliyuncs.com/digoal/opensource_database:pg14_with_exts
# 启动容器
docker run -d -it --cap-add=SYS_PTRACE --cap-add SYS_ADMIN --privileged=true --name pg registry.cn-hangzhou.aliyuncs.com/digoal/opensource_database:pg14_with_exts
# 进入容器
docker exec -ti pg bash
# 连接数据库
psql
from blog.
免费云起实验室地址:
内置PolarDB-X, PolarDB-PG, PostgreSQL容器镜像:
[root@iZuf6g6afqwaglx4kxuskxZ ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
registry.cn-hangzhou.aliyuncs.com/digoal/opensource_database pg14_with_exts 1b9d30ed2910 5 days ago 5.25GB
polardbx/polardb-x latest f4da3f72d974 3 months ago 2.91GB
polardb/polardb_pg_local_instance htap 62fcb916564e 3 months ago 5.65GB
polardb/polardb_pg_devel latest bc8f10854b35 3 months ago 1.92GB
操作方法:
1、PolarDB-PG
创建并启动容器
docker run -d -it --cap-add=SYS_PTRACE --privileged=true --name polardb-pg polardb/polardb_pg_local_instance:htap
进入容器
docker exec -ti polardb-pg bash
连接数据库
psql -h 127.0.0.1 -c 'select version();'
停止容器
docker stop polardb-pg
删除容器
docker rm polardb-pg
2、PolarDB-X
创建并启动容器
docker run -d --name polardb-x -p 8527:8527 polardbx/polardb-x
进入容器
docker exec -ti polardb-x bash
连接数据库
mysql -h127.0.0.1 -P8527 -upolardbx_root -p123456
停止容器
docker stop polardb-x
删除容器
docker rm polardb-x
3、PostgreSQL
创建并启动容器
docker run -d -it --cap-add=SYS_PTRACE --cap-add SYS_ADMIN --privileged=true --name pg registry.cn-hangzhou.aliyuncs.com/digoal/opensource_database:pg14_with_exts
进入容器
docker exec -ti pg bash
连接数据库
psql
停止容器
docker stop pg
删除容器
docker rm pg
from blog.
武汉大学数据库课程实验仓库:
https://gitee.com/polardb/whudb-course
from blog.
Related Issues (20)
- 请教一个有关pg_class被vacuum full的问题 HOT 2
- 關於 postgresql page size 疑問 HOT 4
- wsl2 run docker 跑 PG DB 並 使用 stap HOT 2
- 是否有方法將 Postgresql DB 複製統計資訊並匯入其他 Postgresql DB 裡? HOT 2
- Unique index 如何證明效能比 non Unique index 佳? HOT 2
- 许愿
- 修改storage_parameter参数问题 HOT 1
- circle的半径 1000和米应该怎样换算呢
- 关于pg 的test case HOT 1
- 如何实现Mysql作为OLTP,PG作为OLAP HOT 3
- pg按任意字段搜索不支持排序 HOT 1
- 德哥,为什么现在很少更新pg的东西了 HOT 6
- 关于《德说-第147期, 如何把100块钱变成1万块钱?》 HOT 1
- 基于PostgreSQL创业的公司有那些 HOT 2
- 请问德哥,PG有类似canal的数据同步中间件吗? HOT 1
- please remove this git with leaked credentials HOT 1
- limit 1 导致查询变慢 HOT 1
- 德哥,咨询一个权限问题,涉及到不同模式和视图 HOT 2
- 唯一约束索引条件下存在重复的数据 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog.