Root@vps18066:~/shopware-docker# ./psh.phar docker:ssh

hello!

after make this command

root@vps18066:~/shopware-docker# ./psh.phar docker:ssh

I get this error:

Error response from daemon: Container c44a5ecc13555573c168e01be1806461dc88ce7565f421221d0b419c65d33867 is not running

how could I solve thi?

thx
Peter

what is missing?

thx

###################

Starting Execution of ‘docker:ssh’ (‘dev-ops/docker/actions/ssh.sh’)

(1/1) Starting

docker exec -i -u 0:0 -t c44a5ecc13555573c168e01be1806461dc88ce7565f421221d0b419c65d33867 bash

Error response from daemon: Container c44a5ecc13555573c168e01be1806461dc88ce7565f421221d0b419c65d33867 is not running

Execution aborted, a subcommand failed!

sorry, could explain a little more…

you start a container with the

docker run  ......parms...... image_name -----parms to container -----

this command returns the container id.

later you can (depending on the container) issue commands to run inside the container
with

docker exec container_id --- command and parms ----

in your case it appears the container you targeted with docker exec is no longer running.
this can happen for a number of reasons… the application specified in the image entrypoint dockerfile statement has terminated for some reason
or
the container was stopped, or killed.

docker ps -a wiill show you the state of all the containers, running or not

Hello, thank you very much I have looked now

STATUS PORTS NAMES
c44a5ecc1355 shopwaredocker_app_server “docker-php-entryp…” 11 hours ago Exited (1) 11 hours ago shopwaredocker_app_server_1
26bffe107cd5 shopwaredocker_app_es “/bin/bash bin/es-…” 11 hours ago Exited (1) 11 hours ago shopwaredocker_app_es_1
70c11866ffc1 shopwaredocker_app_redis “docker-entrypoint…” 11 hours ago Up 11 hours 6379/tcp shopwaredocker_app_redis_1
a87a353dcee9 shopwaredocker_app_mysql “docker-entrypoint…” 11 hours ago Up 11 hours 3306/tcp shopwaredocker_app_mysql_1

yes, 2 exited and 2 running… looks like the tool you are using may be confused by so many to choose from.

the error is reported against the 1st in your list with id

c44a5ecc1355

maybe you need to clean those out

docker rm container_id

to remove dead containers no longer needed
and

docker kill container_id

to stop one of the two running (and then have to delete it)

well there are 4 different containers

app_
server – exited
es — exited
redis — running
and mysql — running

maybe there is a problem that is causing the other two to exit

hi, done bu I hang once again

what should I do next?
thx

root@vps18066:~/shopware-docker# ./psh.phar docker:ssh

###################
Starting Execution of ‘docker:ssh’ (‘dev-ops/docker/actions/ssh.sh’)

(1/1) Starting

docker exec -i -u 0:0 -t bash
“docker exec” requires at least 2 argument(s).
See ‘docker exec --help’.

Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG…]

Run a command in a running container

Execution aborted, a subcommand failed!

root@vps18066:~/shopware-docker#

oot@vps18066:~/shopware-docker# ./psh.phar docker:ssh

###################
Starting Execution of ‘docker:ssh’ (‘dev-ops/docker/actions/ssh.sh’)

(1/1) Starting

docker exec -i -u 0:0 -t bash
“docker exec” requires at least 2 argument(s).
See ‘docker exec --help’.

Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG…]

Run a command in a running container

Execution aborted, a subcommand failed!

root@vps18066:~/shopware-docker#

docker exec is to send a command to a container,
it needs the container id… maybe that script is looking for a specific container that is now not there…
(one of the ones that was exited)

thank you I fixed that

my next problem is:

./psh.phar init

hänge ich bei

  [PDOException]         

hat da jemand eine Lösung was noch fehlt?

danke

34007/34007 [============================] 100%

 Download finished

Unzipping archive

Creating database shopware



                         

  [PDOException]         

  could not find driver  

what do you think how could I solve that?
thx
peter

See

thank you I try that

someone give me this command

./psh.phar docker:start,docker:ssh

and it worked but I am hanging on the next

Duration: 7s

All commands successfully executed!

Starting Execution of ‘docker:ssh’ (‘dev-ops/docker/actions/ssh.sh’)

i don’t know anything about that psh.phar stuff

ok so I think they make something

PSH - The PHP Shell Helper
https://github.com/shopwareLabs/psh : psh the php shell helper
And this is exactly what I did, and we are pleased enough with the solution that we even released it as Open Source on Github.

so they have made something and I find it out

nice, but I don’t know what it does, how it relates to docker, etc…