我从docker开始,有一个码头图像我无法删除。我应该使用什么命令来清除本地安装的映像列表?
我试过的是:
$ docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
dpage/pgadmin4 latest 8efd3d498978 5 months ago 245MB
但是,移除图像不起作用:
$ docker image rm dpage/p
我使用一个组合文件创建了一个docker postgres容器: postgres:
image: postgres:12-alpine
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- "5432:5432" init.sql: CREATE USER test WITH PASSWORD '123456';
ALTER USER test WITH SUPERUSER;
CREATE DATABASE test; 我还通过运行以下命令创建了一个
我可以运行两个码头容器。我可以看到它们正在运行,但我看不到实际的服务。 我按照步骤here设置了一个新的postgresql实例,我可以看到它已经启动并运行: [vagrant@localhost dev]$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
fe1fd9c362a2 dp
我正在尝试使用pgAdmin4停靠容器连接本地postgres数据库。当我打开Unable to connect to server: could not connect to server: Connection refused并在创建新的服务器连接后登录时,我得到了http://localhost:5050/错误消息。
这是我的docker-compose.yml文件
version: '3.5'
services:
pgadmin:
container_name: pgadmin4
image: dpage/pgadmin4
environm
在我的港口pgadmin容器中,我想访问位于我的windows10操作系统中的postgresql备份文件。所以我试着建立一个共享目录。运行此命令可以正常工作。目录链接到容器。
docker run --name=windows10 -d -v C:\Users\johndoe:/windows10 -p 5554:80 dpage/pgadmin4 -e PGADMIN_DEFAULT_EMAIL=john@doe.com -e PGADMIN_DEFAULT_PASSWORD=whatever
但是,该目录不会挂载,因为它在启动时提供了错误日志:
You need to specify P
我想在我的OpenShift名称空间中部署pgadmin,但是当我从docker.hub部署默认的pgadmin镜像时,我遇到了一个错误: /entrypoint.sh: line 8: can't create /pgadmin4/config_distro.py: Permission denied
You need to define the PGADMIN_DEFAULT_EMAIL and PGADMIN_DEFAULT_PASSWORD environment variables. 但是,我不能访问完全权限的OpenShift,我不是管理员集群,我不能做o
我刚接触过码头集装箱,但对Postgres并不是很陌生(我在过去做过一些探索)。
问题是,我正在尝试连接从以下Docker容器启动的Postgres服务器
问题是我无法使用PGAdmin4连接到服务器。我得到了以下错误:
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Add
我正在尝试建立微型服务项目。当我试图运行我的docker_compose文件时,我得到了这个错误:
ERROR: Named volume "postgres:/data/postgres:rw" is used in service "postgres" but no declaration was found in the volumes section.
这是我的docker_compose文件:
services:
postgres:
container_name: postgres
image: postgres
envir