clitools icon indicating copy to clipboard operation
clitools copied to clipboard

FIX: present docker-compose.yml prevents share:restore when 'docker' …

Open kitzberger opened this issue 5 years ago • 2 comments

In case you wanna run ct share:restore --mysql from inside a docker container and there's a docker-compose.yml present that command quits with an exception because it fails to list all running docker containers. Because inside a docker container the docker executable is usually not available.

This patch makes sure the user is being asked in case docker ps fails whether or not they wanna continue.

kitzberger avatar Mar 05 '20 11:03 kitzberger

@kitzberger When do you need such a call within a docker container? I don't get the real world scenario actually.

Don't get me wrong, I find the idea of the patch super for some situations.

josefglatz avatar Feb 11 '21 06:02 josefglatz

@josefglatz, that's almost one year ago, how should I remember ;-) but we probably had have a scenario like having all project files including the docker-compose.yml copied/mounted/cloned into the container.

kitzberger avatar Feb 11 '21 08:02 kitzberger