以这种方式运行时,它工作正常:
docker run -it --rm -p 5050:5050 --name testing fenglc/pgadmin4但是当我将它添加到docker-compose时,我无法连接到localhost:5050。对thajeztah/pgadmin4镜像也是如此
version: "3"
services:
pgadmin:
image: fenglc/pgadmin4
ports:
- "5050:5050"这不是一回事吗?
发布于 2017-10-07 22:27:25
好的,我错过了你的码头运行声明中的-it标志。你需要有下面的作曲
version: "3"
services:
pgadmin:
image: fenglc/pgadmin4
stdin_open: true
tty: true
ports:
- "5050:5050"https://stackoverflow.com/questions/46620439
复制相似问题