Code Monkey home page Code Monkey logo

Comments (11)

skanehira avatar skanehira commented on July 24, 2024

@ryoryotaro
I added a logger to docui.
Please update docui and paste ~/docui.log on this issue after attach the container.

from docui.

ryoryotaro avatar ryoryotaro commented on July 24, 2024

Thank you for your update.
Docui.log when I attach the container is as follows.

time="2019-01-23T04:09:53Z" level=info msg="attach container start" func="github.com/skanehira/docui/panel.(*ContainerList).Attach" file="/Users/skanehira/dev/go/src/github.com/skanehira/docui/panel/containerPanel.go:590"
time="2019-01-23T04:09:53Z" level=error msg="exec: \"docker\": executable file not found in $PATH" func="github.com/skanehira/docui/panel.(*ContainerList).Attach" file="/Users/skanehira/dev/go/src/github.com/skanehira/docui/panel/containerPanel.go:606"
time="2019-01-23T04:09:53Z" level=info msg="attach container finished" func="github.com/skanehira/docui/panel.(*ContainerList).Attach" file="/Users/skanehira/dev/go/src/github.com/skanehira/docui/panel/containerPanel.go:609"
time="2019-01-23T04:09:53Z" level=info msg="docui start" func=main.main file="/Users/skanehira/dev/go/src/github.com/skanehira/docui/main.go:14"

from docui.

skanehira avatar skanehira commented on July 24, 2024

@ryoryotaro
There have the following error.

time="2019-01-23T04:09:53Z" level=error msg="exec: \"docker\": executable file not found in $PATH" func="github.com/skanehira/docui/panel.(*ContainerList).Attach" file="/Users/skanehira/dev/go/src/github.com/skanehira/docui/panel/containerPanel.go:606"

It seems that PATH does not include docker.
I think that you can execute it by including the docker in PATH.

from docui.

ryoryotaro avatar ryoryotaro commented on July 24, 2024

Which PATH docui container or host machine ?
In docui container,docker is not installed.
In host machine, docker is installed and PATH is /usr/bin/docker.

from docui.

skanehira avatar skanehira commented on July 24, 2024

@ryoryotaro
When attach to container docui call docker attach internally.
Therefore, in the environment running docui, you need the docker command.

I plan to improve so that we don't need Docker int the future.

from docui.

ryoryotaro avatar ryoryotaro commented on July 24, 2024

OK, Thanks .
So this is proposal that to implement shell login function instead of attach. Because as far as I know, docker attach is not so match used and I use docker exec -it <container id> /bin/sh for login container.

from docui.

skanehira avatar skanehira commented on July 24, 2024

@ryoryotaro
I'll support docker exec -it <containerid> bin/sh for login container.
Please wait a moment.

from docui.

ryoryotaro avatar ryoryotaro commented on July 24, 2024

I'm looking forward to your support.
Thank a lot.

from docui.

skanehira avatar skanehira commented on July 24, 2024

@ryoryotaro
I supported use docker exec to attach container in this issue.
#52

Please update docui and use it.

Let me know if that works for you.
If there is no problem, I'll close this issue.

from docui.

ryoryotaro avatar ryoryotaro commented on July 24, 2024

Thanks a lot.
I updated docui and confirmed docker exec worked fine !
But,it's better change the name at the top of the popup and "Attach" button name.
2019-01-28_10h02_32

from docui.

skanehira avatar skanehira commented on July 24, 2024

@ryoryotaro
Thanks.
I fixed that in this commit.
#55

from docui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.