Docker-in-docker (DIND) cannot execute ash shell

I am using DIND Docker-in-docker container.
I have launched successfully the container, and I can execute commands using

docker exec {cid} {command}

docker ps

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
331e4849a988 docker:stable-dind “dockerd-entrypoin…” 12 minutes ago Up 12 minutes 2375/tcp worker2

docker exec 331e4849a988 ls /bin/ash

/bin/ash

But I cannot execute /bin/ash, it just shows nothing until I CTRL-C

docker exec 331e4849a988 /bin/ash

{nothing happens}
^C

Any hint?

Thanks in advance.

And when you add -it as argument after exec? So: docker exec -it 331e4849a988 /bin/ash

The it is for interactive tty, so you can execute some commands in the container.

Thanks a lot @wdijkerman. That indeed works.