Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker cannot attach into container [closed]

I am using bitnami/symfony docker project (https://github.com/bitnami/bitnami-docker-symfony)

docker ps

    CONTAINER ID        IMAGE                            COMMAND                  CREATED             STATUS              PORTS                    NAMES
    d42e336d7454        bitnami/symfony:1-debian-10      "/app-entrypoint.sh …"   5 minutes ago       Up 5 minutes        0.0.0.0:8000->8000/tcp   simplistiapp_app_1
    7f37c7c6fec8        bitnami/mariadb:10.3-debian-10   "/opt/bitnami/script…"   5 minutes ago       Up 5 minutes        0.0.0.0:3306->3306/tcp   simplistiapp_mariadb_1

Then I am trying to SSH using:

docker exec –it simplistiapp_app_1 /bin/bash

Getting this error (worked yesterday):

Error: No such container: –it

What am I doing wrong? From the articles I've read this should work - it worked yesterday.

like image 617
Alex.Barylski Avatar asked Oct 15 '25 22:10

Alex.Barylski


1 Answers

You seem to be using some different character for - in -it

You can barely tell the difference here but compare the following:

Right: -

Wrong:

Copy and pasting the following command will solve your problem:

docker exec -it simplistiapp_app_1 /bin/bash

like image 195
saulmaldonado Avatar answered Oct 17 '25 12:10

saulmaldonado



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!