最初のドッキングウィンドウでGolangコードを実行私は次のエラーを取得する:エラー:フォーク/ execを:いいえそのようなファイルやディレクトリは - 私はコンテナにGocodeを実行したいが、私がしようとすると、コンテナ内で実行する場合 <p></p>を高く評価され、すべての任意のヘルプの
[[email protected] ping-app]# go run main.go
start check_server
INFO[0000] http.startHttpServer ok, listening 0.0.0.0:8080 source="api.go:106"
INFO[0000] Index=ipdata exists=true source="elastic.go:164"
INFO[0000] Index=ipdata Type=entity exists=true source="elastic.go:184"
fork/exec : no such file or directory
fork/exec : no such file or directory
fork/exec : no such file or directory
fork/exec : no such file or directory
fork/exec : no such file or directory
fork/exec : no such file or directory
fork/exec : no such file or directory
fork/exec : no such file or directory
私はこれが起こっている理由を理解することはできませんし、それが唯一のドッキングウィンドウで起こったが、私はホスト上でそのGocodeを実行したときに、それはokです。
Environment :
Centos: 7.0.1406
Kubernetes: 1.2.0
docker: 1.10.3
ありがとうございます。
"Gocode"とアプリかパッケージはありますか?あなたは何をやっているのですか? – JimB
申し訳ありませんが、それはアプリの書き込みはgoで、プログラムはrubbersearchからIP情報を取得するために定期的なインターバルを使い、その後redisに入れ、もう一つのルーチンはredisからipを取得してを継続的に受信します –
lufeng
Dockerfileと'docker run'コマンド – user2915097