I use:
docker exec -it yugabyte bash -c 'ysqlsh --echo-queries -h $(hostname) -p 5433'
to avoid a docker inspect