Docker Community Forums

Share and learn in the Docker community.

How to connect containers in docker engine?

I have created two docker containers (Backend container and frontend container) in docker engine. Is there a way to connect these two containers to communicate with each other?

The docker exec and docker attach commands allow you to connect to a running container. To get an interactive shell to a container, use the exec command to start a new shell session. The attach command attaches your terminal to a running container.