Docker - 用dokku查看安装的地方

时间:2014-07-13 12:42:27

标签: lua containers docker dokku

我正在docker使用dokku。尝试使用https://github.com/leafo/heroku-buildpack-lua/调试问题。 是否可以查看和查看泊坞窗容器的内容?

vagrant@dokku:~$ dokku logs dokku.me -t
/app/.profile.d/config_vars: line 3: /app/packages/lib/lua/5.1/?.so: No such file or directory
/app/.profile.d/config_vars: line 4: /app/packages/share/lua/5.1/?.lua: No such file or directory
/app/.profile.d/config_vars: line 4: /app/packages/share/lua/5.1/?/init.lua: No such file or directory
lua: /app/bin/lapis:3: module 'lapis.cmd.actions' not found:
no field package.preload['lapis.cmd.actions']
no file './lapis/cmd/actions.lua'
no file '/usr/local/share/lua/5.1/lapis/cmd/actions.lua'
no file '/usr/local/share/lua/5.1/lapis/cmd/actions/init.lua'
no file '/usr/local/lib/lua/5.1/lapis/cmd/actions.lua'
no file '/usr/local/lib/lua/5.1/lapis/cmd/actions/init.lua'
no file './lapis/cmd/actions.so'
no file '/usr/local/lib/lua/5.1/lapis/cmd/actions.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file './lapis.so'
no file '/usr/local/lib/lua/5.1/lapis.so'
no file '/usr/local/lib/lua/5.1/loadall.so'

stack traceback:
[C]: in function 'require'
/app/bin/lapis:3: in main chunk
[C]: ?

我建议将lapis安装在不在lua加载路径中的某个位置。

谢谢!

1 个答案:

答案 0 :(得分:0)

考虑到:

  • 应用名称为yourapp
  • 服务器名称为domain.com
  • RequestTTY true
  • ~/.ssh/config部分配置了domain.com

你可以运行:

ssh dokku@domain.com run yourapp ls -la

它将输出您部署的应用程序目录。同样适用于cd或任何其他命令,语法相同:ssh dokku@domain.com run yourapp <command>

我认为如果你进入服务器,就可以运行dokku run yourapp <command>

来源:http://progrium.viewdocs.io/dokku/remote-commands