{"id":20087666,"url":"https://github.com/ginolatorilla/vscode-dev-container","last_synced_at":"2025-08-08T02:18:25.070Z","repository":{"id":44158456,"uuid":"511967897","full_name":"ginolatorilla/vscode-dev-container","owner":"ginolatorilla","description":"My VSCode Devcontainer for all the things I need for my DevOps role","archived":false,"fork":false,"pushed_at":"2022-08-05T10:23:55.000Z","size":50,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T14:47:58.057Z","etag":null,"topics":["containers","dev-containers","devcontainer","devcontainers","docker","vs","vscode"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ginolatorilla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-08T17:00:56.000Z","updated_at":"2024-07-13T03:36:13.000Z","dependencies_parsed_at":"2022-07-30T10:08:03.277Z","dependency_job_id":null,"html_url":"https://github.com/ginolatorilla/vscode-dev-container","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ginolatorilla/vscode-dev-container","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginolatorilla%2Fvscode-dev-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginolatorilla%2Fvscode-dev-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginolatorilla%2Fvscode-dev-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginolatorilla%2Fvscode-dev-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ginolatorilla","download_url":"https://codeload.github.com/ginolatorilla/vscode-dev-container/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ginolatorilla%2Fvscode-dev-container/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269351979,"owners_count":24402694,"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-08-08T02:00:09.200Z","response_time":72,"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":["containers","dev-containers","devcontainer","devcontainers","docker","vs","vscode"],"created_at":"2024-11-13T16:06:02.149Z","updated_at":"2025-08-08T02:18:25.019Z","avatar_url":"https://github.com/ginolatorilla.png","language":"Dockerfile","readme":"# My VSCode Development Container\n\nHere I define my development container that I use with the [Remote - Containers](https://aka.ms/vscode-remote/)\nplugin in VSCode. This is oriented for a DevOps role.\n\n## Features\n\n- Your host's username will be used inside. You can run `sudo` to elevate permissions.\n- Run `docker` inside. The container's Docker CLI will connect to the host's Docker daemon.\n- Preserve your home directory (shell history and configuration files) across container rebuilds.\n- Hook script if you need custom initialisation of the container.\n- Third-party packages are listed in `.devcontainer/install-packages.sh` so that you can use this script in a Linux host (e.g. WSL2).\n- Integrates with [ginolatorilla/dotfiles](https://github.com/ginolatorilla/dotfiles).\n\n## Installation\n\n### Windows\n\n1. Install [WSL2](https://docs.microsoft.com/en-us/windows/wsl/install).\n2. Install [Docker Desktop](https://docs.docker.com/desktop/install/windows-install/).\n3. Go to **Docker Desktop Settings** and check **Use the WSL 2 based engine**.\n4. Install [VSCode](https://code.visualstudio.com/), and the extensions\n   [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) and\n   [Remote - WSL](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-wsl).\n5. Connect VSCode to WSL2 using the **Remote - WSL** extension.\n6. Open a terminal, clone this repo, and reopen it in VSCode.\n7. Open the **Command Palette** _(Ctrl+Shift+P)_ and select **Rebuild Container**.\n\n### Mac\n\n1. Install [Docker Desktop](https://docs.docker.com/desktop/install/mac-install/).\n2. Install [VSCode](https://code.visualstudio.com/), and the extension\n   [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).\n3. Clone this repo and reopen it in VSCode.\n4. Open the **Command Palette** _(Ctrl+Shift+P)_ and select **Rebuild Container**.\n\n### Linux\n\n1. Install [Docker Desktop](https://docs.docker.com/desktop/install/linux-install/) or [Docker Engine](https://docs.docker.com/engine/install/).\n2. Install [VSCode](https://code.visualstudio.com/), and the extension\n   [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).\n3. Clone this repo and reopen it in VSCode.\n4. Open the **Command Palette** _(Ctrl+Shift+P)_ and select **Rebuild Container**.\n\n## Usage Patterns\n\n### Access the host's SSH agent\n\nUse this Bash script to reconnect to the SSH agent socket that's created by VSCode:\n\n```bash\nexport SSH_AUTH_SOCK=$(find /tmp -name 'vscode-ssh-auth-*')\n```\n\nYou may also use this script to attach to the container from outside VSCode:\n\n```bash\nDEVCONTAINER=$(docker container ls | grep vscode-dev-container | awk '{print $1}')\nSSH_AUTH_IN_CONTAINER=$(docker exec $DEVCONTAINER sh -c 'ls -t /tmp/vscode-ssh-auth* 2\u003e/dev/null' | head -1)\ndocker exec -it -e SSH_AUTH_SOCK=$SSH_AUTH_IN_CONTAINER -u $USER -w /home/$USER $DEVCONTAINER bash\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fginolatorilla%2Fvscode-dev-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fginolatorilla%2Fvscode-dev-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fginolatorilla%2Fvscode-dev-container/lists"}