亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

請問該如何制作一個定制的 PHP 基礎 Docker 鏡像?

請問該如何制作一個定制的 PHP 基礎 Docker 鏡像?

ibeautiful 2019-07-03 11:07:50
如何制作一個定制的 PHP 基礎 Docker 鏡像
查看完整描述

3 回答

?
人到中年有點甜

TA貢獻1895條經驗 獲得超7個贊

因為安裝了docker我本地已經沒有/usr/bin/php文件。
這時候,如果我需要使用php cli來執行一個php,如何操作?
我想,可以ssh進行php容器,然后在容器內執行 /usr/bin/php xxx.php
但是在phpstrom IDE中感覺使用起來不太方便。
然后我看到phpstorm有個 docker的plugin,需要配置個docker-machine
問題來了,我開發環境是ubuntu 16.04

$ docker-machine create -d none --url="tcp://0.0.0.0:2375" default

$ docker-machine env default

Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host "0.0.0.0:2375": dial tcp 0.0.0.0:2375: getsockopt: connection refused
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'.
Be advised that this will trigger a Docker daemon restart which will stop running containers.

查看完整回答
反對 回復 2019-07-06
  • 3 回答
  • 0 關注
  • 1222 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號