Docker Community Forums

Share and learn in the Docker community.

Unable to open in shell

docker

(Pankaj2017) #1

PS C:\Users\dell> docker container exec -it new_ubuntu bash
Error response from daemon: Container 2e8510e9dec77852f877d394f0639920211fee01f97294521da80059609f4d15 is not running
PS C:\Users\dell> docker container start -ai new_ubuntu bassh
you cannot start and attach multiple containers at once
PS C:\Users\dell> docker container start -ai new_ubuntu bassh
you cannot start and attach multiple containers at once

I am unable to start a container in shell


(Sam) #2

try docker run command

attach is used to connect to a container already running with the docker run command

docker start is used to restart a container that was stopped with the docker stop command