Skip to content

devcontainer does not work for windows #3049

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

Closed
koooge opened this issue Aug 27, 2023 · 2 comments · Fixed by #3251
Closed

devcontainer does not work for windows #3049

koooge opened this issue Aug 27, 2023 · 2 comments · Fixed by #3251

Comments

@koooge
Copy link

koooge commented Aug 27, 2023

Hi there,
devcontainer does not work on WSL2. It looks like apt-get update fails and exits with code100.

...
=> ERROR [web dev_container_auto_added_stage_label 2/7] RUN apt-get upda  0.7s
------
 > [web dev_container_auto_added_stage_label 2/7] RUN apt-get update     && apt-get -y install --no-install-recommends apt-utils dialog 2>&1     && apt-get -y install git iproute2 procps     && rm -rf /opt/yarn-*     && rm -f /usr/local/bin/yarn     && rm -f /usr/local/bin/yarnpkg     && apt-get install -y curl apt-transport-https lsb-release     && curl -sS https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/pubkey.gpg | apt-key add - 2>/dev/null     && echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list     && apt-get update     && apt-get -y install --no-install-recommends yarn tmux locales postgresql     && npm install -g eslint     && if [ "1000" != "1000" ] || [ "1000" != "1000" ]; then     groupmod --gid 1000 node     && usermod --uid 1000 --gid 1000 node     && chown -R 1000:1000 /home/node;     fi     && apt-get install -y sudo     && echo node ALL=(root) NOPASSWD:ALL > /etc/sudoers.d/node     && chmod 0440 /etc/sudoers.d/node     && apt-get autoremove -y     && apt-get clean -y     && rm -rf /var/lib/apt/lists/*:
0.524 Ign:1 http://deb.debian.org/debian stretch InRelease
0.524 Ign:2 http://security.debian.org/debian-security stretch/updates InRelease
0.528 Ign:3 http://deb.debian.org/debian stretch-updates InRelease
0.529 Ign:4 http://security.debian.org/debian-security stretch/updates Release
0.533 Ign:5 http://deb.debian.org/debian stretch Release
0.535 Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
0.537 Ign:7 http://deb.debian.org/debian stretch-updates Release
0.540 Ign:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.543 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages
0.545 Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
0.549 Ign:10 http://deb.debian.org/debian stretch/main all Packages
0.549 Ign:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.553 Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
0.558 Ign:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.564 Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
0.569 Ign:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.574 Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
0.579 Ign:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.584 Ign:6 http://security.debian.org/debian-security stretch/updates/main all Packages
0.588 Err:8 http://security.debian.org/debian-security stretch/updates/main amd64 Packages
0.588   404  Not Found
0.595 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
0.597 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.602 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages
0.631 Ign:10 http://deb.debian.org/debian stretch/main all Packages
0.635 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
0.638 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.643 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages
0.646 Ign:10 http://deb.debian.org/debian stretch/main all Packages
0.650 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
0.655 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.660 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages
0.662 Ign:10 http://deb.debian.org/debian stretch/main all Packages
0.665 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
0.668 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.671 Ign:9 http://deb.debian.org/debian stretch/main amd64 Packages
0.674 Ign:10 http://deb.debian.org/debian stretch/main all Packages
0.679 Ign:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
0.684 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.688 Err:9 http://deb.debian.org/debian stretch/main amd64 Packages
0.688   404  Not Found
0.694 Ign:10 http://deb.debian.org/debian stretch/main all Packages
0.696 Err:11 http://deb.debian.org/debian stretch-updates/main amd64 Packages
0.696   404  Not Found
0.699 Ign:12 http://deb.debian.org/debian stretch-updates/main all Packages
0.707 Reading package lists...
0.716 W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.
0.716 W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
0.716 W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
0.716 E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-amd64/Packages  404  Not Found
0.716 E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-amd64/Packages  404  Not Found
0.716 E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-amd64/Packages  404  Not Found
0.716 E: Some index files failed to download. They have been ignored, or old ones used instead.
------
failed to solve: process "/bin/sh -c apt-get update     && apt-get -y install --no-install-recommends apt-utils dialog 2>&1     && apt-get -y install git iproute2 procps     && rm -rf /opt/yarn-*     && rm -f /usr/local/bin/yarn     && rm -f /usr/local/bin/yarnpkg     && apt-get install -y curl apt-transport-https lsb-release     && curl -sS https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/pubkey.gpg | apt-key add - 2>/dev/null     && echo \"deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main\" | tee /etc/apt/sources.list.d/yarn.list     && apt-get update     && apt-get -y install --no-install-recommends yarn tmux locales postgresql     && npm install -g eslint     && if [ \"$USER_GID\" != \"1000\" ] || [ \"$USER_UID\" != \"1000\" ]; then     groupmod --gid $USER_GID $USERNAME     && usermod --uid $USER_UID --gid $USER_GID $USERNAME     && chown -R $USER_UID:$USER_GID /home/$USERNAME;     fi     && apt-get install -y sudo     && echo node ALL=\\(root\\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME     && chmod 0440 /etc/sudoers.d/$USERNAME     && apt-get autoremove -y     && apt-get clean -y     && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
[5482 ms] Error: Command failed: docker-compose --project-name 
...
@brianc
Copy link
Owner

brianc commented Sep 1, 2023

I dunno what devcontainer is?

@koooge
Copy link
Author

koooge commented Sep 2, 2023

This repo has .devcontianer https://github.com/brianc/node-postgres/tree/master/.devcontainer. I thought it is the dev env for this repo, but is it not used?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants