{"id":21479416,"url":"https://github.com/rycus86/docker-intellij-idea","last_synced_at":"2026-01-02T23:56:31.828Z","repository":{"id":37601956,"uuid":"92993244","full_name":"rycus86/docker-intellij-idea","owner":"rycus86","description":"Docker container to run IntelliJ IDEA Community Edition","archived":false,"fork":false,"pushed_at":"2023-05-30T11:17:22.000Z","size":93,"stargazers_count":41,"open_issues_count":0,"forks_count":18,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-23T18:16:11.430Z","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/rycus86.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2017-05-31T22:14:44.000Z","updated_at":"2024-07-05T13:10:42.000Z","dependencies_parsed_at":"2024-11-23T11:25:40.061Z","dependency_job_id":"a9de5b95-2918-4d69-8f41-efd757ccf016","html_url":"https://github.com/rycus86/docker-intellij-idea","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rycus86%2Fdocker-intellij-idea","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rycus86%2Fdocker-intellij-idea/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rycus86%2Fdocker-intellij-idea/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rycus86%2Fdocker-intellij-idea/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rycus86","download_url":"https://codeload.github.com/rycus86/docker-intellij-idea/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244004330,"owners_count":20382368,"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","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-11-23T11:25:14.459Z","updated_at":"2026-01-02T23:56:31.790Z","avatar_url":"https://github.com/rycus86.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"Docker container to run IntelliJ IDEA Community Edition (https://www.jetbrains.com/idea/)\n\n### Usage\n\n```\ndocker run --rm \\\n  -e DISPLAY=${DISPLAY} \\\n  -v /tmp/.X11-unix:/tmp/.X11-unix \\\n  -v ~/.Idea:/home/developer/.Idea \\\n  -v ~/.Idea.java:/home/developer/.java \\\n  -v ~/.Idea.maven:/home/developer/.m2 \\\n  -v ~/.Idea.gradle:/home/developer/.gradle \\\n  -v ~/.Idea.share:/home/developer/.local/share/JetBrains \\\n  -v ~/Project:/home/developer/Project \\\n  --name idea-$(head -c 4 /dev/urandom | xxd -p)-$(date +'%Y%m%d-%H%M%S') \\\nrycus86/intellij-idea:${IDE_VERSION}\n```\n\nDocker Hub Page: https://hub.docker.com/r/rycus86/intellij-idea/\n([available versions](https://hub.docker.com/r/rycus86/intellij-idea/tags))\n\n### OS X instructions\n\n1. Install XQuartz from https://www.xquartz.org/releases/\n2. Configure `Allow connections from network clients` in the settings\n    - Restart the system (needed only once when this is enabled)\n3. Run `xhost +localhost` in a terminal to allow connecting to X11 over the TCP socket\n4. Use `-e DISPLAY=host.docker.internal:0` for passing the `${DISPLAY}` environment\n\n#### For Windows hosts (simplified):\n\n```\ndocker.exe run --rm -d ^\n     --name intellij-idea ^\n     -e DISPLAY=YOUR_IP_ADDRESS:0.0 ^\n     -v %TEMP%\\.X11-unix:/tmp/.X11-unix ^\n     -v %USERPROFILE%\\intellij-idea:/home/developer ^\n     rycus86/intellij-idea:%IDE_VERSION%\n```\n\n### Notes\n\nThe IDE will have access to a JDK and to Git as well.\nProject folders need to be mounted like `-v ~/Project:/home/developer/Project`.\nThe actual name can be anything - I used something random to be able to start multiple instances if needed.\nYou might want to consider using `--network=host` if you're running servers from the IDE.\n\n#### UI Exception\n\nSome Linux users may face `java.lang.NoClassDefFoundError` being thrown while running a container.\nWell, actually, it is rather simple to solve this issue. See, when you are running a graphical application\non any Linux distro, it most definitely will try to create a connection to the X server.\nBut in some cases there will be a security extension called\n[Xsecurity](https://www.x.org/releases/X11R7.7/doc/man/man7/Xsecurity.7.xhtml) and it will try to prevent\nsuch behavior by default.\n\n**To allow your containers to connect to the X server you'll need to use another X utility called `xhost`.**\nBut first you want to install it if you don't have one. Find a package name with this utility on your distro's\nrepositories *(e.g.: on Arch-based distros it will be in `xorg-xhost` package)*.\nThen use it to allow all local connections:\n\n```shell\nxhost +localhost\n```\n\n#### Idea Access Denied Exception\n\nContainer runs with `developer` user by default, so if you don't have your mapped volumes directories\ncreated, Docker will create them with a root user and Idea will not have access to them.\n\nTo solve this you should create volume directories by yourself with your default user or just\n`chown` them after they were created and rerun the container.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frycus86%2Fdocker-intellij-idea","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frycus86%2Fdocker-intellij-idea","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frycus86%2Fdocker-intellij-idea/lists"}