docker.io/library/postgres:latest 四、部署Postgresql数据库 1.创建Postgresql容器 docker run -d --name postgres --restart always -e POSTGRES_PASSWORD='admin'-e POSTGRES_USER='admin'-e ALLOW_IP_RANGE=0.0.0.0/0 -v /data/
Status: Downloaded newer imageforpostgres:latest docker.io/library/postgres:latest root@hello:~# root@hello:~# docker save > postgres.tar postgres:latest root@hello:~# ll postgres.tar -rw-r--r--1root root381950976Mar3008:04postgres.tar root@hello:~# 导入镜像 root@hello:~# docker load -i...
docker.io/library/postgres:latest root@hello:~# root@hello:~# docker save > postgres.tar postgres:latest root@hello:~# ll postgres.tar -rw-r--r-- 1 root root 381950976 Mar 30 08:04 postgres.tar root@hello:~# 导入镜像 root@hello:~# docker load -i postgres.tar 7ab4f6ae3ff7: Loadi...
Status: Downloaded newer image for postgres:latest docker.io/library/postgres:latest#检查是否安装成功[root@localhost ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE postgres latest b2fcd079c1d4 2 weeks ago 315MB jenkins/jenkins latest 171f17febd29 4 months ago 572MB [root@localhost ~]#...
docker.io/library/postgres:12.5 7.启动12.5版本的Docker镜像 [root@centos8 ~]# docker run --name my_pg2 -e POSTGRES_PASSWORD=Hb_docker123 -d postgres:12.5 0f8c3201d722fedd92ca30d2bb3e963282fc03887505703330d307293ffbaf8f [root@centos8 ~]# docker ps -a ...
docker.io/library/postgres:latest root@hello:~#root@hello:~# docker save > postgres.tar postgres:latestroot@hello:~# ll postgres.tar-rw-r--r--1root root381950976Mar3008:04 postgres.tar root@hello:~# 导入镜像 === 代码语言:shell AI...
/library/postgres:latest root@hello:~# root@hello:~# docker save > postgres.tar postgres:latest root@hello:~# ll postgres.tar -rw-r--r-- 1 root root 381950976 Mar 30 08:04 postgres.tar root@hello:~# 1. 2. 3. 4. 5. 6. ...
f4ae9407a16bb03baa7fef287ee6371f1 Status: Downloaded newer image for postgres:latest docker.io/library/postgres:latest root@hello:~# root@hello:~# docker save > postgres.tar postgres:latest root@hello:~# ll postgres.tar -rw-r--r-- 1 root root 381950976 Mar 30 08:04 postgres.tar root...
$ docker pull postgres Using default tag: latest latest: Pulling from library/postgres 1fe172e4850f: Pull complete ... c08147da7b54: Pull complete Digest: sha256:ab0be6280ada8549f45e6662ab4f00b7f601886fcd55c5976565d4636d87c8b2 Status: Downloaded newer image for postgres:latest docker.io/...
io/library/postgres:14.5 root@lhrxxt:~# docker run --name lhrpg14 -h lhrpg14 -d -p 54327:5432 -e POSTGRES_PASSWORD=lhr -e TZ=Asia/Shanghai postgres:14.5 9395477ca203bc5f4b82f886e888a5724b22cddf051e528e00db68b281c53e25 root@lhrxxt:~# docker exec -it lhrpg14 bash root@lhrpg14...