Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

langgraph up doesn't find Docker on mac #1319

Open
5 tasks done
n-sviridenko opened this issue Aug 12, 2024 · 14 comments
Open
5 tasks done

langgraph up doesn't find Docker on mac #1319

n-sviridenko opened this issue Aug 12, 2024 · 14 comments

Comments

@n-sviridenko
Copy link

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangGraph/LangChain documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangGraph/LangChain rather than my code.
  • I am sure this is better as an issue rather than a GitHub discussion, since this is a LangGraph bug and not a design question.

Example Code

[Not applicable]

Error Message and Stack Trace (if applicable)

No response

Description

> langgraph up

Starting LangGraph API server...
For local dev, requires env var LANGSMITH_API_KEY with access to LangGraph Cloud closed beta.
For production use, requires a license key in env var LANGGRAPH_CLOUD_LICENSE_KEY.
Usage: langgraph up [OPTIONS]
Try 'langgraph up --help' for help.

Error: Docker not installed or not running

System Info

langchain-core==0.2.29
langchain-openai==0.1.21

mac

python 3.12

@n-sviridenko
Copy link
Author

I'm also using zsh, so it's similar to Similar to langchain-ai/langgraph-studio#37 , but in my case I already did everything that was suggested in that issue and it didn't help

@vbarda
Copy link
Collaborator

vbarda commented Aug 13, 2024

@n-sviridenko is docker running on your machine? could you perhaps paste output of docker info command?

@n-sviridenko
Copy link
Author

n-sviridenko commented Aug 13, 2024 via email

@vbarda
Copy link
Collaborator

vbarda commented Aug 16, 2024

any chance you're using podman?

@n-sviridenko
Copy link
Author

Not really - just the regular Docker desktop for mac.

@vbarda
Copy link
Collaborator

vbarda commented Aug 19, 2024

can you paste the output of docker info?

@vbarda
Copy link
Collaborator

vbarda commented Aug 30, 2024

Closing due to inactivity

@vbarda vbarda closed this as completed Aug 30, 2024
@n-sviridenko
Copy link
Author

> langgraph up

Starting LangGraph API server...
For local dev, requires env var LANGSMITH_API_KEY with access to LangGraph Cloud closed beta.
For production use, requires a license key in env var LANGGRAPH_CLOUD_LICENSE_KEY.
Usage: langgraph up [OPTIONS]
Try 'langgraph up --help' for help.

Error: Docker not installed or not running
> docker info

Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)
  scan: Docker Scan (Docker Inc., v0.6.0)

Server:
 Containers: 14
  Running: 14
  Paused: 0
  Stopped: 0
 Images: 67
 Server Version: 20.10.5
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e
 runc version: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.10.25-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 6
 Total Memory: 1.941GiB
 Name: docker-desktop
 ID: TTHX:VUA5:ENOI:XRZ4:OCGS:FYCB:6S63:7RKQ:IXKL:WE6N:YLSB:7X7D
 Docker Root Dir: /var/lib/docker
 Debug Mode: true
  File Descriptors: 154
  Goroutines: 133
  System Time: 2024-10-26T13:42:25.088685898Z
  EventsListeners: 4
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

@n-sviridenko
Copy link
Author

@vbarda posted above, we can re-open it

@gedion
Copy link

gedion commented Oct 26, 2024

Having the same issue.

 base) ➜  langgraph-cloud docker --version
 Docker version 20.10.22, build 3a2c30b
 (base) ➜  langgraph-cloud langgraph up
 Starting LangGraph API server...
 For local dev, requires env var LANGSMITH_API_KEY with access to LangGraph Cloud closed beta.
 For production use, requires a license key in env var LANGGRAPH_CLOUD_LICENSE_KEY.
 Usage: langgraph up [OPTIONS]
 Try 'langgraph up --help' for help.
 
Error: Docker not installed or not running

@gedion
Copy link

gedion commented Oct 26, 2024

According to the official Docker documentation at https://docs.docker.com/reference/cli/docker/system/info/#format , the correct usage of the -f flag with the info command is:

docker info -f '{{json .}}'

however, it appears that it's being used incorrectly here: https://github.com/langchain-ai/langgraph/blob/main/libs/cli/langgraph_cli/docker.py#L80

@vbarda vbarda reopened this Oct 31, 2024
@dqbd
Copy link
Contributor

dqbd commented Oct 31, 2024

@gedion Hello, would it be possible to share your contents of docker info -f json and if `docker info -f '{{ json . }}' does yield different outputs?

@gedion
Copy link

gedion commented Nov 1, 2024

@gedion Hello, would it be possible to share your contents of docker info -f json and if `docker info -f '{{ json . }}' does yield different outputs?

Yes it does and I have learned it appears to be a docker version issue.

$ docker --version
Docker version 20.10.22, build 3a2c30b
$ docker info - json
json
$ docker info -f '{{ json . }}'
//redacted
{
  "ID": "213f120b-e127-4cc2-86f7-3499237c5311",
  "Containers": 2,
  "ContainersRunning": 2,
  "ContainersPaused": 0,
  "ContainersStopped": 0,
  "Images": 4,
  "Driver": "overlay2",
  "Plugins": {
    "Volume": ["local"],
    "Network": ["bridge", "host", "overlay"],
    "Log": ["json-file"]
  },
  "MemoryLimit": true,
  "SwapLimit": true,
  "CpuCfsPeriod": true,
  "CpuCfsQuota": true,
  "PidsLimit": true,
  "IPv4Forwarding": true,
  "BridgeNfIptables": true,
  "BridgeNfIp6tables": true,
  "SystemTime": "2024-11-01T07:32:25.551791675Z",
  "LoggingDriver": "json-file",
  "CgroupDriver": "cgroupfs",
  "CgroupVersion": "2",
  "KernelVersion": "6.6.12-linuxkit",
  "OperatingSystem": "Docker Desktop",
  "OSType": "linux",
  "Architecture": "aarch64",
  "NCPU": 8,
  "MemTotal": 8222334976,
  "DockerRootDir": "/var/lib/docker",
  "Name": "docker-desktop",
  "ServerVersion": "25.0.3",
  "DefaultRuntime": "runc",
  "SecurityOptions": ["name=seccomp,profile=unconfined"],
  "ClientInfo": {
    "Version": "25.0.3",
    "Os": "darwin",
    "Arch": "arm64",
    "Plugins": [
      {
        "Name": "buildx",
        "Version": "v0.12.1-desktop.4"
      },
      {
        "Name": "compose",
        "Version": "v2.24.5-desktop.1"
      },
      {
        "Name": "sbom",
        "Version": "0.6.0"
      }
    ]
  }
}

I just learned that a previous version of (Docker version 25.0.3, build 4debf41) yields valid and expected json object response for docker info - json

@spoletum
Copy link

+1 here. Tried with both Podman Desktop and Rancher Desktop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@gedion @dqbd @n-sviridenko @vbarda @spoletum and others