---
title: ""
url: "https://docs.yugabyte.com/stable/quick-start/explore/docker/explore-ysql/"
---

# 

To open the YSQL shell, run ysqlsh.

```sh
$ docker exec -it yugabyte bash -c '/home/yugabyte/bin/ysqlsh --echo-queries --host $(hostname)'
```

```output
ysqlsh (15.2-YB-2026.1.2.0-b0)
Type "help" for help.

yugabyte=#
```
