還有就是我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