{"id":22160548,"url":"https://github.com/rozek/docker-red","last_synced_at":"2026-03-19T22:02:08.644Z","repository":{"id":185291139,"uuid":"673298167","full_name":"rozek/docker-red","owner":"rozek","description":"run RED scripts in a Docker Container","archived":false,"fork":false,"pushed_at":"2023-08-03T03:29:23.000Z","size":20,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-31T13:01:51.101Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rozek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-08-01T10:11:08.000Z","updated_at":"2023-09-20T03:30:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"78e28016-6376-4199-9380-502aff53db05","html_url":"https://github.com/rozek/docker-red","commit_stats":null,"previous_names":["rozek/docker-red"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rozek/docker-red","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fdocker-red","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fdocker-red/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fdocker-red/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fdocker-red/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rozek","download_url":"https://codeload.github.com/rozek/docker-red/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fdocker-red/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281992161,"owners_count":26595645,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-31T02:00:07.401Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T04:08:43.254Z","updated_at":"2025-10-31T13:02:59.466Z","avatar_url":"https://github.com/rozek.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-red #\n\nruns RED (and Rebol) scripts in a Docker Container (not only) on a modern Mac\n\n[RED](https://www.red-lang.org/p/about.html) (and [Rebol](http://www.rebol.com/)) scripts do not run under macOS Catalina and newer since 32-bit applications are no longer supported.\n\nIf you still want to experiment with Rebol and/or RED, you will have to start a [Docker](https://www.docker.com/) container and either use a shell to run CLI scripts or use \"X11 forwarding\" for GUI scripts.\n\nThis repository basically contains a Dockerfile to build a Docker image for CLI and GUI scripts plus instructions for setting up a Mac in order to display RED/Rebol GUIs. The Dockerfile is based on a [similar project](https://codeberg.org/vazub/red-docker), but has been modified to run all kinds of RED and Rebol scripts - additionally, the instructions to configure macOS have been modernized and simplified.\n\n## Build a Docker Image ##\n\nIn order to build and run Docker images you must have Docker installed - for most people, installing the [Docker Desktop](https://www.docker.com/products/docker-desktop/) is the best way to do so.\n\nThen follow the steps shown below:\n\n1. clone this repository: either use\u003cbr\u003e\u0026nbsp;\u003cbr\u003e`git clone https://github.com/rozek/docker-red`\u003cbr\u003e\u0026nbsp;\u003cbr\u003eor [download a ZIP archive](https://github.com/rozek/docker-red/archive/refs/heads/main.zip) with this repository and unpack it\n2. navigate to the root folder of this repository:\u003cbr\u003e\u0026nbsp;\u003cbr\u003e`cd docker-red`\u003cbr\u003e\u0026nbsp;\u003cbr\u003e\n3. build the Docker image using\u003cbr\u003e\u0026nbsp;\u003cbr\u003e`docker build -t docker-red .`\u003cbr\u003e\u0026nbsp;\u003cbr\u003e\n\n## Run RED/Rebol CLI Scripts ##\n\nYou are now ready to run CLI scripts. Simply start the container built before using\n\n```\ndocker run --rm --platform=linux/386 -v .:/transfer -it docker-red\n```\n\nfrom the macOS Terminal and you will get a RED prompt.\n\nIf you prefer Rebol itself, just run\n\n```\ndocker run --rm --platform=linux/386 -v .:/transfer -it docker-red /bin/rebol\n```\n\ninstead.\n\n## Sharing a Host Folder with the Docker Container ##\n\nThe Docker image has been prepared to share a local (host) folder with the container - either for copying files into the container or vice-versa (or both).\n\nSimply navigate to the local folder you want to share\n\n```\ncd \u003cfolder-shared-with-docker\u003e\n```\n\nand run the Docker image as shown above.\n\nAlternatively, you may also change the `-v .:/transfer` part of the Docker commands shown above to\n\n```\n-v \u003cfolder-shared-with-docker\u003e:/transfer\n```\n\nand start the Docker container from anywhere.\n\n## Prepare a Mac for X11 Display Forwarding ##\n\nMacOS cannot natively display GUIs created inside a Docker container - you need to install XQuartz for that purpose. Simply follow steps 1...7 from [another guide](https://gist.github.com/sorny/969fe55d85c9b0035b0109a31cbcb088) **but do not forget to restart your Mac!**\n\n## Run RED/Rebol GUI Scripts ##\n\nYou are now ready to run GUI scripts as well:\n\n```\nopen -a XQuartz \\\n\u0026\u0026 xhost +localhost \\\n\u0026\u0026 docker run --rm --platform=linux/386 -v .:/transfer -e DISPLAY=host.docker.internal:0 \\\n   -it docker-red /bin/red-view\n```\n\nstarts `red-view` and\n\n```\nopen -a XQuartz \\\n\u0026\u0026 xhost +localhost \\\n\u0026\u0026 docker run --rm --platform=linux/386 -v .:/transfer -e DISPLAY=host.docker.internal:0 \\\n   -it docker-red /bin/rebol-view\n```\n\ndoes the same for Rebol and opens the famous Rebol Viewtop.\n\nIf you want to share a local folder with a Docker container running a GUI script, simply choose one of the approaches described above.\n\n## License ##\n\n[MIT License](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozek%2Fdocker-red","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frozek%2Fdocker-red","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozek%2Fdocker-red/lists"}