{"id":15674734,"url":"https://github.com/rosenbjerg/wsl2-podman","last_synced_at":"2025-05-06T21:47:12.179Z","repository":{"id":41347723,"uuid":"450065026","full_name":"rosenbjerg/wsl2-podman","owner":"rosenbjerg","description":"Script for installing WSL2 + podman and podman-compose (or docker and docker-compose)","archived":false,"fork":false,"pushed_at":"2022-09-08T21:50:04.000Z","size":50,"stargazers_count":40,"open_issues_count":3,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T15:06:52.764Z","etag":null,"topics":["docker","docker-compose","podman","podman-compose","wsl2"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rosenbjerg.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}},"created_at":"2022-01-20T11:13:46.000Z","updated_at":"2025-03-16T11:53:48.000Z","dependencies_parsed_at":"2023-01-18T01:30:45.857Z","dependency_job_id":null,"html_url":"https://github.com/rosenbjerg/wsl2-podman","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/rosenbjerg%2Fwsl2-podman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosenbjerg%2Fwsl2-podman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosenbjerg%2Fwsl2-podman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rosenbjerg%2Fwsl2-podman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rosenbjerg","download_url":"https://codeload.github.com/rosenbjerg/wsl2-podman/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252776476,"owners_count":21802461,"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":["docker","docker-compose","podman","podman-compose","wsl2"],"created_at":"2024-10-03T15:49:43.446Z","updated_at":"2025-05-06T21:47:12.153Z","avatar_url":"https://github.com/rosenbjerg.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# For podman on Windows, see the 1st party installation guide [here](https://github.com/containers/podman/blob/main/docs/tutorials/podman-for-windows.md)\n\n\n## WSL2 podman/docker install script\nScript for installing WSL2 + `podman` and `podman-compose` (or `docker` and `docker-compose`), and adding Windows \"aliases\" for convenience\n\n\n### Installation\n- [Download](https://github.com/rosenbjerg/wsl2-podman/archive/refs/heads/main.zip) and extract the `.bat` and `.ps1` files into same folder and run the `.bat` script (will prompt for admin rights)\n- Switch from `localhost` to `::1` or `wsl` if you experience problems connecting to a container from some application on the host\n\n\n### Improvements and other suggestions\nPlease create issues for improvements or suggestions to the script\n\n\n### Known problems\n\n#### Running the installer\nIf you experience problems starting the installer using the `.bat` script, it may be because the `.ps1` file is blocked in Windows. \n\nRight-click on the `.ps1` file and select Properties. Then in the General tab, you will see the option to unblock it. \nAfter unblocking, you should be able to start the install script.\n\nIf that doesn't solve it, you may need to move the two files to another directory, possibly due OneDrive synchronization of the current folder.\nMoving the two files to the root of `C:\\` should resolve the issue.\n\n#### Absolute paths\nOne problem with this docker-desktop alternative is that you cannot use absolute paths for mounting.\nInstead you will have to either use relative paths or rewrite `C:\\` to `/mnt/c/` and use forward slashes\n\n#### Connecting to containers using `localhost`\nSome applications automatically resolve localhost to `127.0.0.1` (IPv4) which Windows doesn't forward to WSL2, without checking the Windows `hosts` file.\nThis means you may experience problems connecting to the containers running in WSL2, if using `localhost`. \n\nIf you do experience this, try changing `localhost`/`127.0.0.1` to `::1` (for TCP connections and `[::1]` for HTTP) or to `wsl`\n\n#### Missing internet connectivity when using Cisco AnyConnect on Windows host\nConnecting or disconnecting the AnyConnect client can cause internet connectivity problems in WSL2. Running the following powershell command with elevated rights fixes this:\n```powershell\nGet-NetAdapter | Where-Object {$_.InterfaceDescription -Match 'Cisco AnyConnect'} | Set-NetIPInterface -ErrorAction SilentlyContinue -InterfaceMetric 6000 | Out-Null\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosenbjerg%2Fwsl2-podman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frosenbjerg%2Fwsl2-podman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frosenbjerg%2Fwsl2-podman/lists"}