Ysqlsh: could not connect to server: Connection refused

I use:

docker exec -it yugabyte bash -c 'ysqlsh --echo-queries -h $(hostname) -p 5433'

to avoid a docker inspect

1 Like