-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
docs: update docker run cmd in readme.md #4786
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,13 +42,20 @@ docker pull docker.all-hands.dev/all-hands-ai/runtime:0.12-nikolaik | |
|
||
docker run -it --pull=always \ | ||
-e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.12-nikolaik \ | ||
-e SANDBOX_USER_ID=${SANDBOX_USER_ID:-1234} \ | ||
-e WORKSPACE_MOUNT_PATH=${WORKSPACE_BASE:-$PWD/workspace} \ | ||
-v /var/run/docker.sock:/var/run/docker.sock \ | ||
-p 3000:3000 \ | ||
--add-host host.docker.internal:host-gateway \ | ||
--name openhands-app \ | ||
docker.all-hands.dev/all-hands-ai/openhands:0.12 | ||
``` | ||
|
||
if you run from a local machine, you can use the following command: | ||
``` | ||
docker compose up | ||
``` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was added by a community member but is not supported officially by the maintainers. |
||
|
||
You'll find OpenHands running at [http://localhost:3000](http://localhost:3000)! | ||
|
||
Finally, you'll need a model provider and API key. | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These were removed on purpose in the latest release. Is there a specific reason you have added them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
problem: file sync from container to local machine
issue
solution add env variable to sync
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default way to run OpenHands in the README is not providing a local filesystem.
If you wanted to attach a local filesystem, you can use the document here which is also mentioned in this readme a bit below:
https://docs.all-hands.dev/modules/usage/runtimes#connecting-to-your-filesystem
This doc has all the options you show above so I don't think this PR is required in the main README.