还有就是我Dockerfile
:.bash_profile中不与泊坞窗PHP的图像工作
# https://hub.docker.com/_/php/
FROM php:5.5.23-fpm
USER www-data
ADD .bash_profile /var/www/.bash_profile
SHELL ["/bin/bash", "-c"]
RUN source /var/www/.bash_profile
再经过容器内置我运行docker exec -it CONTAINER_NAME bash
,我没有看到我的别名定义成/var/www/.bash_profile
。但如果我手动执行source /var/www/.bash_profile
- 一切正常。
同样的问题在这里描述:https://github.com/docker/kitematic/issues/896但没有答案。
你Dockerfile没有''CMD'or和ENTRYPOINT'你不显示你的'泊坞窗run'命令,如'搬运工EXEC '连接到正在运行的容器 – user2915097