我正在尝试在docker上安装xdebug。 首先,我想知道我是否可以在现有的 docker 容器上下载它,如果是,如何?
当然可以。只需与容器交互,然后执行安装命令。
$ docker exec -it <containerName or ID> /bin/bash
then you will be root in container mostly
# apt update && apt install <application>