Giter Site home page Giter Site logo

command not found: ip about willow HOT 9 OPEN

taozhiyuai avatar taozhiyuai commented on June 24, 2024
command not found: ip

from willow.

Comments (9)

taozhiyuai avatar taozhiyuai commented on June 24, 2024

I execute this command instead.

taozhiyu@603e5f4a42f1 ~ % ifconfig | grep 'inet ' | grep -v 'inet6 ' | awk '{print $2}'
127.0.0.1
192.168.31.110

http://127.0.0.1:8502, http://192.168.31.110:8502

both can not be accessed.

from willow.

nikito avatar nikito commented on June 24, 2024

This is potentially an issue with docker not passing traffic out to the host. How are you running the container?

from willow.

taozhiyuai avatar taozhiyuai commented on June 24, 2024

This is potentially an issue with docker not passing traffic out to the host. How are you running the container?

1.install docker on my MAC laptop.

2.docker run --detach --name=willow-application-server --pull=always --network=host --restart=unless-stopped --volume=was-storage:/app/storage ghcr.io/toverainc/willow-application-server
截屏2024-05-12 14 52 13

  1. ifconfig | grep 'inet ' | grep -v 'inet6 ' | awk '{print $2}'

192.168.31.110 is my LAN IP at home

from willow.

nikito avatar nikito commented on June 24, 2024

I think others have found that docker on Mac does not work with network=host, i think you have to use network=bridge

from willow.

taozhiyuai avatar taozhiyuai commented on June 24, 2024

I think others have found that docker on Mac does not work with network=host, i think you have to use network=bridge @nikito

network=bridge

TERMINAL LOG

taozhiyu@603e5f4a42f1 ~ % docker run --detach --name=willow-application-server --pull=always --network=bridge --restart=unless-stopped --volume=was-storage:/app/storage ghcr.io/toverainc/willow-application-server
latest: Pulling from toverainc/willow-application-server
Digest: sha256:06c0310585f2defa13e0f02922fa0075fbaf14bf5e63f1437596716c041e019e
Status: Image is up to date for ghcr.io/toverainc/willow-application-server:latest
cda8c2a48ec77e011d98d7aae0d70db913f05cefca8e744aada82806baffff62
taozhiyu@603e5f4a42f1 ~ % ifconfig | grep 'inet ' | grep -v 'inet6 ' | awk '{print $2}'
127.0.0.1
192.168.31.110

DOCKER LOG

2024-05-13 06:09:45 [2024-05-12T22:09:45] INFO: Started server process [9]
2024-05-13 06:09:45 [2024-05-12T22:09:45] INFO: Waiting for application startup.
2024-05-13 06:09:45 [2024-05-12T22:09:45] INFO: Application startup complete.
2024-05-13 06:09:45 [2024-05-12T22:09:45] INFO: Uvicorn running on http://0.0.0.0:8502 (Press CTRL+C to quit)

from willow.

taozhiyuai avatar taozhiyuai commented on June 24, 2024

network=host

TERMINAL LOG

taozhiyu@603e5f4a42f1 ~ % docker run --detach --name=willow-application-server --pull=always --network=host --restart=unless-stopped --volume=was-storage:/app/storage ghcr.io/toverainc/willow-application-server
latest: Pulling from toverainc/willow-application-server
Digest: sha256:06c0310585f2defa13e0f02922fa0075fbaf14bf5e63f1437596716c041e019e
Status: Image is up to date for ghcr.io/toverainc/willow-application-server:latest
4e7eef326ef825af52ebdf6d577c2b7dc77cef80c21ae1ad6638649246705aa8
taozhiyu@603e5f4a42f1 ~ % ifconfig | grep 'inet ' | grep -v 'inet6 ' | awk '{print $2}'
127.0.0.1
192.168.31.110

DOCKER LOG

2024-05-13 06:15:49 [2024-05-12T22:15:49] INFO: Started server process [9]
2024-05-13 06:15:49 [2024-05-12T22:15:49] INFO: Waiting for application startup.
2024-05-13 06:15:50 [2024-05-12T22:15:50] INFO: Application startup complete.
2024-05-13 06:15:50 [2024-05-12T22:15:50] INFO: Uvicorn running on http://0.0.0.0:8502 (Press CTRL+C to quit)

from willow.

taozhiyuai avatar taozhiyuai commented on June 24, 2024

both not work on my MAC

but other dockers work fine, for example oneapi, openwebui, dify

from willow.

nikito avatar nikito commented on June 24, 2024

I'm not sure what specific issue is occurring on mac, our Linux users use the original command you tried without issue. Maybe try running the docker the same way you run the others? Perhaps excluding the network argument may help?
Additionally that network mode won't change anything in the logs, it just affects how the container's network is exposed through docker. Regardless of the argument, the container itself always listens on 0.0.0.0, which means all interfaces. 🙂
Another thought, what ip do you use to talk to the other containers? That ip would ultimately be the same ip this would listen on, since that is the docker Host's ip.

from willow.

taozhiyuai avatar taozhiyuai commented on June 24, 2024

I'm not sure what specific issue is occurring on mac, our Linux users use the original command you tried without issue. Maybe try running the docker the same way you run the others? Perhaps excluding the network argument may help? Additionally that network mode won't change anything in the logs, it just affects how the container's network is exposed through docker. Regardless of the argument, the container itself always listens on 0.0.0.0, which means all interfaces. 🙂 Another thought, what ip do you use to talk to the other containers? That ip would ultimately be the same ip this would listen on, since that is the docker Host's ip.

oneapi, dify or other docker container, I use localhost:port. they all work fine

from willow.

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.