Closed ontoneio closed 1 year ago
Hi 👋
I tried to reproduce with a simple Ubuntu Template (jammy) where Developer: Reload Window
worked fine for me.
I am in my devcontainer and use the Developer: Reload Window command only to now have it break the connection to the container where it didn't used to before. When I do this, I receive this error message.
This is strange and definitely should not happen. @ontoneio would it be possible to paste the dev container config? I should be able to provide better insights then.
Also, can you provide the following details -
Hi @samruddhikhandale ! Appreciate the quick response!
Here's the devcontainer.json
, sorry for the lack of clean up.
{
"name": "web-cms",
// "image": "ghcr.io/alcoitd/cms-devcontainer:2.1.0",
"build": {
"context": "../",
"dockerfile": "Dockerfile",
"args": {
"vscode": "true"
}
},
"features": {
"docker-in-docker": {
"version": "latest",
"moby": true,
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers/features/github-cli:1": {
"version": "latest"
}
},
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode",
"runArgs": [ "--init", "--privileged"],
"overrideCommand": false,
"workspaceMount": "source=/home/vscode/projects/cms,target=/workspaces,type=bind,consistency=cached",
"workspaceFolder": "/workspaces",
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [3000, 3333, 8000],
"remoteEnv": {
"PATH": "${containerEnv:PATH}:${containerEnv:GLOBAL_DEPS}:${containerEnv:PULUMI}"
},
"containerEnv": {
"GLOBAL_DEPS": "/workspaces/node_modules/.bin",
"PULUMI": "${containerEnv:HOME}/.pulumi/bin"
},
"mounts": [
"source=cms-devcontainer-extensions,target=/root/.vscode-server/extensions,type=volume",
"source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind"
],
"postCreateCommand": "chmod +x /workspaces/tools/config/postCreate.sh && /workspaces/tools/config/postCreate.sh",
// TODO: add `hostRequirements`: cpus, memory, storage
// Set *default* container specific settings.json values on container create.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
"settings": {
"peacock.color": "#e96143",
"peacock.remoteColor": "#4aace9",
"peacock.surpriseMeOnStartup": false,
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#77c1ef",
"activityBar.activeBorder": "#e41b97",
"activityBar.background": "#77c1ef",
"activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#e41b97",
"activityBarBadge.foreground": "#e7e7e7",
"sash.hoverBorder": "#77c1ef",
"statusBar.background": "#4aace9",
"statusBar.foreground": "#15202b",
"statusBarItem.hoverBackground": "#1d97e3",
"statusBarItem.remoteBackground": "#219e11",
"statusBarItem.remoteForeground": "#15202b",
"titleBar.activeBackground": "#4aace9",
"titleBar.activeForeground": "#15202b",
"titleBar.inactiveBackground": "#4aace999",
"titleBar.inactiveForeground": "#15202b99"
},
"html.autoClosingTags": true,
"javascript.autoClosingTags": true,
"typescript.autoClosingTags": true,
"javascript.suggest.autoImports": true,
"typescript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.updateImportsOnFileMove.enabled": "always",
"emmet.excludeLanguages": [],
"emmet.includeLanguages": {
"vue-html": "html",
"javascript": "javascriptreact"
},
"files.trimTrailingWhitespace": true,
"[markdown]": {
"files.trimTrailingWhitespace": false
},
"editor.occurrencesHighlight": true,
"editor.linkedEditing": true,
"terminal.integrated.defaultProfile.linux": "bash",
"git.mergeEditor": true,
"git.showCommitInput": false,
"git.useEditorAsCommitInput": false,
"git.enableSmartCommit": true,
"git.terminalGitEditor": true,
"git.autofetch": true,
"git.autoStash": true,
"git.postCommitCommand": "sync",
"git.branchProtection": ["main", "develop"],
"githubPullRequests.assignCreated": "${user}",
"githubIssues.userCompletions.enabled": true,
"githubIssues.assignWhenWorking": true,
"githubIssues.useBranchForIssues": "on",
"githubIssues.issueBranchTitle": "issue/${issueNumber}",
"git.branchWhitespaceChar": "-",
"git.branchValidationRegex": "^(feature|issue|bugfix|release|refactor|hotfix|test|experiment)\/([0-9]+|[a-zA-Z]+)",
"scm.showActionButton": false,
"npm.exclude": "**/apps/**",
"npm.scriptExplorerExclude": ["(update:env)", "(prepare)(?!-)"],
"eslint.validate": ["json"],
"shellformat.path": "/usr/local/bin/shfmt"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"nrwl.angular-console",
"esbenp.prettier-vscode",
"firsttris.vscode-jest-runner",
"ms-azuretools.vscode-docker",
"temitope1909.dotenv-intellisense",
"mhutchie.git-graph",
"github.vscode-pull-request-github",
"christian-kohler.npm-intellisense",
"mutantdino.resourcemonitor",
"gruntfuggly.todo-tree",
"vue.volar",
"redhat.vscode-yaml",
"Lokalise.i18n-ally",
"quicktype.quicktype",
"egomobile.vscode-powertools",
"BriteSnow.vscode-toggle-quotes",
"tusaeff.vscode-typescript-destructure-plugin",
"foxundermoon.shell-format",
"funkyremi.vscode-google-translate",
"oderwat.indent-rainbow",
"mikestead.dotenv",
"ms-vscode.azurecli",
"ms-azuretools.vscode-azureappservice",
"mkhl.shfmt",
"kingoftac.fast-snippets",
"webreflection.literally-html",
"bashmish.es6-string-css",
"christian-kohler.path-intellisense",
"astro-build.astro-vscode",
"bradgashler.htmltagwrap"
]
}
}
}
VSCode Version Info:
Version: 1.75.1 (system setup)
Commit: 441438abd1ac652551dbe4d408dfcec8a499b8bf
Date: 2023-02-08T21:32:34.589Z
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: No
OS Info:
PRETTY_NAME="Ubuntu 22.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.1 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
Note: This is my OS is running on WSL2 on Windows 11
Dev Containers Extension version v0.275.1
Docker Desktop v4.15.0
Thanks for taking a look at this.
Thanks, looks like the Dockerfile contents are missing for me to repro the dev container.
Looking at the error logs,
[2023-02-10T00:53:38.095Z] ln: failed to create symbolic link '/tmp/user/1000/vscode-wayland-98e044ba9b38ae9859314dd3b95d69c73867d515.sock': File exists [2023-02-10T00:53:38.095Z] Exit code 1
I suspect you have an issue with your ln
command. Can you append it with -snf
flag and retry?
Hi @samruddhikhandale ! So sorry for the delay in getting this to you. Here is the Dockerfile used to build the Devcontainer.
# ----------------------------------------------------------
# VS-Code Development Docker Image
# ----------------------------------------------------------
#
FROM mcr.microsoft.com/vscode/devcontainers/base:ubuntu-22.04 as base
# BASE ARGS
ARG INSTALL_ZSH="false"
ARG UPGRADE_PACKAGES="true"
ARG USE_MOBY="true"
ARG USERNAME=vscode
ARG USER_UID=1000
ARG USER_GID=$USER_UID
ARG SHFMT_VERSION="3.5.1"
ARG vscode
# BASE ENV
ENV HOME=/home/${USERNAME}
# Enable new "BUILDKIT" mode for Docker CLI
ENV DOCKER_BUILDKIT=1
RUN if [[ -z "$vscode" ]] ; then printf "\nERROR: This Dockerfile needs to be built with VS Code !" && exit 1; else printf "VS Code is detected: $vscode"; fi
RUN mkdir -p $HOME/.vscode-server/extensions \
&& chown -R $USERNAME ${HOME}/.vscode-server
RUN apt-get update -y && apt-get install -y wget ca-certificates build-essential g++ libx11-dev libxkbfile-dev libsecret-1-dev python-is-python3 xsel make maven apache2 && apt-get autoremove -y && apt-get clean -y
FROM base as op_system
SHELL [ "/bin/bash", "-c" ]
# since we're starting non-interactive shell,
# we wil need to tell bash to load .bashrc manually
ENV BASH_ENV ~/.bashrc
# needed by volta() function
ENV VOLTA_HOME ${HOME}/.volta
# make sure packages managed by volta will be in PATH
ENV PATH $VOLTA_HOME/bin:$PATH
RUN curl https://get.volta.sh | bash
RUN volta install node yarn nx husky netlify-cli jest @magnolia/cli moment-cli
RUN chown -R ${USERNAME}:$(id -gn ${USERNAME}) ${VOLTA_HOME}
RUN curl -fsSL https://get.pulumi.com | sh
RUN curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
RUN chown -R ${USERNAME}:$(id -gn ${USERNAME}) ${HOME}/.config
RUN chown -R ${USERNAME}:$(id -gn ${USERNAME}) ${HOME}/.cache
RUN chown -R ${USERNAME}:$(id -gn ${USERNAME}) ${HOME}/.npm
RUN groupadd docker
RUN usermod -aG docker ${USERNAME}
# PACKAGING
FROM op_system as packaging
ARG BUILD_DATE
ARG RELEASE_VERSION
LABEL org.acgov.agency = "ITD"
LABEL org.acgov.department = "WEB"
LABEL org.acgov.service = "CMS-Dev:Content Management System Development Environment"
LABEL org.acgov.image.maintainer = "itdweb@acgov.org"
LABEL org.acgov.image.authors = "Jonathan.Mitchell@acgov.org"
LABEL org.acgov.image.created = ${BUILD_DATE}
LABEL org.acgov.image.version = ${RELEASE_VERSION}
LABEL org.acgov.image.title = "CMS Dev-Container"
# # Setting the ENTRYPOINT to docker-init.sh will configure non-root access to
# # the Docker socket if "overrideCommand": false is set in devcontainer.json.
# # The script will also execute CMD if you need to alter startup behaviors.
ENTRYPOINT [ "/usr/local/share/docker-init.sh" ]
CMD [ "sleep", "infinity" ]
What do you get for running ls -la /tmp/user/1000
inside the container?
Hi @chrmarti,
Sorry for the later response. Here's what I receive when inputting that command.
drwx------ 2 vscode vscode 120 Feb 23 19:34 .
drwx------ 3 vscode vscode 60 Feb 23 19:34 ..
srwxr-xr-x 1 vscode vscode 0 Feb 23 19:34 git-graph-askpass-J2FGJeYeRNaK9FadXP0rsn0GPukm54lD.sock
srwxr-xr-x 1 vscode vscode 0 Feb 23 19:34 vscode-git-1b435f8407.sock
srwxr-xr-x 1 vscode vscode 0 Feb 23 19:34 vscode-ipc-9da62c3b-41de-469b-9fcf-b76485621072.sock
lrwxrwxrwx 1 vscode vscode 65 Feb 23 19:34 vscode-wayland-e54e2daacfeb88ac46177665acb2a1fb5f9d32a2.sock -> /tmp/vscode-wayland-e54e2daacfeb88ac46177665acb2a1fb5f9d32a2.sock
@ontoneio Could you also append the output from docker inspect <container-id>
(using the id of the current dev container)? It looks like /tmp/vscode-wayland-e54e2daacfeb88ac46177665acb2a1fb5f9d32a2.sock
doesn't exist although we look it up on the container.
@chrmarti Sure! Here's the output of that.
[
{
"Id": "2275824f9e36f0ab8d11f5a2b7049f618c8b6520a0e2df9c194b263073f3b99d",
"Created": "2023-02-23T01:14:16.973083654Z",
"Path": "/bin/sh",
"Args": [
"-c",
"echo Container started\ntrap \"exit 0\" 15\n/usr/local/share/docker-init.sh\nexec \"$@\"\nwhile sleep 1 \u0026 wait $!; do :; done",
"-",
"/usr/local/share/docker-init.sh",
"sleep",
"infinity"
],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 27910,
"ExitCode": 0,
"Error": "",
"StartedAt": "2023-02-23T19:34:52.136052029Z",
"FinishedAt": "2023-02-23T19:34:35.844114681Z"
},
"Image": "sha256:fb1c4cfa10819d482c64ebf9a3a833d7dd7006bf4a693ce090c0776a5d7e567d",
"ResolvConfPath": "/var/lib/docker/containers/2275824f9e36f0ab8d11f5a2b7049f618c8b6520a0e2df9c194b263073f3b99d/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/2275824f9e36f0ab8d11f5a2b7049f618c8b6520a0e2df9c194b263073f3b99d/hostname",
"HostsPath": "/var/lib/docker/containers/2275824f9e36f0ab8d11f5a2b7049f618c8b6520a0e2df9c194b263073f3b99d/hosts",
"LogPath": "/var/lib/docker/containers/2275824f9e36f0ab8d11f5a2b7049f618c8b6520a0e2df9c194b263073f3b99d/2275824f9e36f0ab8d11f5a2b7049f618c8b6520a0e2df9c194b263073f3b99d-json.log",
"Name": "/pedantic_shannon",
"RestartCount": 0,
"Driver": "overlay2",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": [
"8f31dbfa67c8ad29bb542192c629a859f0435bcb5f4036e5e50cd5f1b6feb690",
"2b2962680df99c27f3484bbc0e9d4b1f00c56496a1b544cabbbf0fd405f6437c",
"19ef12b967c2b8a2ec93250296500e06b3e0c66b612e6beeb9e98c0db7f0fba4",
"ba757a5c787d4e84a4ad015b87006814a21b129e1eaf139459f201d6876b77b3",
"26d9cd0269e34fbdc651a9c44237d6d30feaf352f7614c58effb6f45720b6238",
"430420536cef84e273e448d07fbefb631cc11e2cb0b6b9ef38600d4456b02b43"
],
"HostConfig": {
"Binds": null,
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "default",
"PortBindings": {},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "host",
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": true,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": [
"label=disable"
],
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": [],
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DeviceCgroupRules": null,
"DeviceRequests": null,
"KernelMemory": 0,
"KernelMemoryTCP": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": null,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"Mounts": [
{
"Type": "bind",
"Source": "/home/vscode/projects/cms",
"Target": "/workspaces",
"Consistency": "cached"
},
{
"Type": "volume",
"Source": "dind-var-lib-docker",
"Target": "/var/lib/docker"
},
{
"Type": "volume",
"Source": "cms-devcontainer-extensions",
"Target": "/root/.vscode-server/extensions"
},
{
"Type": "bind",
"Source": "/run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Ubuntu-22.04/71329c4cc6e32171553fa81d044eb31d1a3aac52ba9376c4a99f4505c494cf5b",
"Target": "/var/run/docker-host.sock"
},
{
"Type": "volume",
"Source": "vscode",
"Target": "/vscode"
},
{
"Type": "bind",
"Source": "/run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Ubuntu-22.04/1e3f10efd5b66e89511d4ace575ae6f00a11f07d7c405a94977aebc6893fa00c",
"Target": "/tmp/vscode-wayland-e54e2daacfeb88ac46177665acb2a1fb5f9d32a2.sock"
}
],
"MaskedPaths": null,
"ReadonlyPaths": null,
"Init": true
},
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/892d42dbf97ac2994d4839c20f18052466cf8e218d894008a344412c4802e859-init/diff:/var/lib/docker/overlay2/x56lxbg3gy8kidsrqtiocl39t/diff:/var/lib/docker/overlay2/j2q562eo7aaltk6sv49e2dd0z/diff:/var/lib/docker/overlay2/b9c2avmq25xtl686r6lliy7mz/diff:/var/lib/docker/overlay2/d0oh7kzml3ojzg01uukibh4j8/diff:/var/lib/docker/overlay2/n0ynvmjhhnh71jzvp9bohfkr6/diff:/var/lib/docker/overlay2/41fawefbjznve4oyj4itve5z4/diff:/var/lib/docker/overlay2/6cbqmcgsc0oyrcczcserenbn0/diff:/var/lib/docker/overlay2/mv9fcg9k1awgxcftt8jt1f07c/diff:/var/lib/docker/overlay2/j8m760o3t94mmgp8dg3twix62/diff:/var/lib/docker/overlay2/oawwnwmabzuu7wa3t40may6x9/diff:/var/lib/docker/overlay2/xnuu0fzir04pcwv2syjzgydzc/diff:/var/lib/docker/overlay2/kbiykcu2yww2685ezgdsc0cel/diff:/var/lib/docker/overlay2/p6u5pfq9i8bgoidndxvl5b353/diff:/var/lib/docker/overlay2/mvvfpk7mbyzast8s5r5s7kz9f/diff:/var/lib/docker/overlay2/pklflssw7vxljq18klvnr4vm5/diff:/var/lib/docker/overlay2/93tfoj4o9leqt09z54jbiuaca/diff:/var/lib/docker/overlay2/ltwje91rfya2mu4x3u93vxprv/diff:/var/lib/docker/overlay2/oi88zzb3rl3j1wgcj84xn61rz/diff:/var/lib/docker/overlay2/2bb9a45763adce8c56d40ea12715993658b3366f927e023903aa06668fb99981/diff:/var/lib/docker/overlay2/7d72543a95c4aa0e5d19d843112abbeada1915d9121771dd5f913d91bfb3ce88/diff:/var/lib/docker/overlay2/8eb5cd89aed9b11d464996b46911beae4e113bf5311d3d3fb1769a6b0fe377d1/diff:/var/lib/docker/overlay2/ce1c44a15b3dba024993da37880b3d0aa1a0c1e82b952030e1be331f94351471/diff:/var/lib/docker/overlay2/fa2af9a743c2df7c194cfe043e2708bf8c14cc37fc8173b7ca3556642c3cc258/diff:/var/lib/docker/overlay2/2ac1d57c54eb5984253f408276fc18d21b23c91416003b4fbf2a7db5f883f745/diff:/var/lib/docker/overlay2/5aeb755732c2998bdff87de73d79105f252f70c3a88a824dd6721800017ca57a/diff:/var/lib/docker/overlay2/a7b17e37c35a82b8fe4277c7237dd230f146a323e01a62fa5a0494860108f6d4/diff",
"MergedDir": "/var/lib/docker/overlay2/892d42dbf97ac2994d4839c20f18052466cf8e218d894008a344412c4802e859/merged",
"UpperDir": "/var/lib/docker/overlay2/892d42dbf97ac2994d4839c20f18052466cf8e218d894008a344412c4802e859/diff",
"WorkDir": "/var/lib/docker/overlay2/892d42dbf97ac2994d4839c20f18052466cf8e218d894008a344412c4802e859/work"
},
"Name": "overlay2"
},
"Mounts": [
{
"Type": "bind",
"Source": "/home/vscode/projects/cms",
"Destination": "/workspaces",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "volume",
"Name": "dind-var-lib-docker",
"Source": "/var/lib/docker/volumes/dind-var-lib-docker/_data",
"Destination": "/var/lib/docker",
"Driver": "local",
"Mode": "z",
"RW": true,
"Propagation": ""
},
{
"Type": "volume",
"Name": "cms-devcontainer-extensions",
"Source": "/var/lib/docker/volumes/cms-devcontainer-extensions/_data",
"Destination": "/root/.vscode-server/extensions",
"Driver": "local",
"Mode": "z",
"RW": true,
"Propagation": ""
},
{
"Type": "bind",
"Source": "/run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Ubuntu-22.04/71329c4cc6e32171553fa81d044eb31d1a3aac52ba9376c4a99f4505c494cf5b",
"Destination": "/var/run/docker-host.sock",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "volume",
"Name": "vscode",
"Source": "/var/lib/docker/volumes/vscode/_data",
"Destination": "/vscode",
"Driver": "local",
"Mode": "z",
"RW": true,
"Propagation": ""
},
{
"Type": "bind",
"Source": "/run/desktop/mnt/host/wsl/docker-desktop-bind-mounts/Ubuntu-22.04/1e3f10efd5b66e89511d4ace575ae6f00a11f07d7c405a94977aebc6893fa00c",
"Destination": "/tmp/vscode-wayland-e54e2daacfeb88ac46177665acb2a1fb5f9d32a2.sock",
"Mode": "",
"RW": true,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "2275824f9e36",
"Domainname": "",
"User": "root",
"AttachStdin": false,
"AttachStdout": true,
"AttachStderr": true,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PULUMI=${containerEnv:HOME}/.pulumi/bin",
"GLOBAL_DEPS=/workspaces/node_modules/.bin",
"PATH=/home/vscode/.volta/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"HOME=/home/vscode",
"DOCKER_BUILDKIT=1",
"BASH_ENV=~/.bashrc",
"VOLTA_HOME=/home/vscode/.volta"
],
"Cmd": [
"-c",
"echo Container started\ntrap \"exit 0\" 15\n/usr/local/share/docker-init.sh\nexec \"$@\"\nwhile sleep 1 \u0026 wait $!; do :; done",
"-",
"/usr/local/share/docker-init.sh",
"sleep",
"infinity"
],
"Image": "vsc-cms-09162038559623cb58209e1656b904da-uid",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/bin/sh"
],
"OnBuild": null,
"Labels": {
"desktop.docker.io/wsl-distro": "Ubuntu-22.04",
"dev.containers.features": "common",
"dev.containers.id": "base-ubuntu",
"dev.containers.release": "v0.2.42",
"dev.containers.source": "https://github.com/devcontainers/images",
"dev.containers.timestamp": "Wed, 15 Feb 2023 00:06:39 GMT",
"dev.containers.variant": "jammy",
"devcontainer.config_file": "/home/vscode/projects/cms/.devcontainer/devcontainer.json",
"devcontainer.local_folder": "\\\\wsl.localhost\\Ubuntu-22.04\\home\\vscode\\projects\\cms",
"devcontainer.metadata": "[ {\"id\":\"ghcr.io/devcontainers/features/common-utils:2\"}, {\"id\":\"ghcr.io/devcontainers/features/git:1\"}, {\"remoteUser\":\"vscode\"}, {\"id\":\"docker-in-docker\",\"privileged\":true,\"entrypoint\":\"/usr/local/share/docker-init.sh\",\"mounts\":[{\"source\":\"dind-var-lib-docker\",\"target\":\"/var/lib/docker\",\"type\":\"volume\"}],\"customizations\":{\"vscode\":{\"extensions\":[\"ms-azuretools.vscode-docker\"]}}}, {\"id\":\"ghcr.io/devcontainers/features/github-cli:1\"}, {\"postCreateCommand\":\"chmod +x /workspaces/tools/config/postCreate.sh \u0026\u0026 /workspaces/tools/config/postCreate.sh\",\"customizations\":{\"vscode\":{\"settings\":{\"peacock.color\":\"#e96143\",\"peacock.remoteColor\":\"#4aace9\",\"peacock.surpriseMeOnStartup\":false,\"workbench.colorCustomizations\":{\"activityBar.activeBackground\":\"#77c1ef\",\"activityBar.activeBorder\":\"#e41b97\",\"activityBar.background\":\"#77c1ef\",\"activityBar.foreground\":\"#15202b\",\"activityBar.inactiveForeground\":\"#15202b99\",\"activityBarBadge.background\":\"#e41b97\",\"activityBarBadge.foreground\":\"#e7e7e7\",\"sash.hoverBorder\":\"#77c1ef\",\"statusBar.background\":\"#4aace9\",\"statusBar.foreground\":\"#15202b\",\"statusBarItem.hoverBackground\":\"#1d97e3\",\"statusBarItem.remoteBackground\":\"#219e11\",\"statusBarItem.remoteForeground\":\"#15202b\",\"titleBar.activeBackground\":\"#4aace9\",\"titleBar.activeForeground\":\"#15202b\",\"titleBar.inactiveBackground\":\"#4aace999\",\"titleBar.inactiveForeground\":\"#15202b99\"},\"html.autoClosingTags\":true,\"javascript.autoClosingTags\":true,\"typescript.autoClosingTags\":true,\"javascript.suggest.autoImports\":true,\"typescript.suggest.autoImports\":true,\"javascript.updateImportsOnFileMove.enabled\":\"always\",\"typescript.updateImportsOnFileMove.enabled\":\"always\",\"emmet.excludeLanguages\":[],\"emmet.includeLanguages\":{\"vue-html\":\"html\",\"javascript\":\"javascriptreact\"},\"files.trimTrailingWhitespace\":true,\"[markdown]\":{\"files.trimTrailingWhitespace\":false},\"editor.occurrencesHighlight\":true,\"editor.linkedEditing\":true,\"terminal.integrated.defaultProfile.linux\":\"bash\",\"git.mergeEditor\":true,\"git.showCommitInput\":false,\"git.useEditorAsCommitInput\":false,\"git.enableSmartCommit\":true,\"git.terminalGitEditor\":true,\"git.autofetch\":true,\"git.autoStash\":true,\"git.postCommitCommand\":\"sync\",\"git.branchProtection\":[\"main\",\"develop\"],\"githubPullRequests.assignCreated\":\"${user}\",\"githubIssues.userCompletions.enabled\":true,\"githubIssues.assignWhenWorking\":true,\"githubIssues.useBranchForIssues\":\"on\",\"githubIssues.issueBranchTitle\":\"issue/${issueNumber}\",\"git.branchWhitespaceChar\":\"-\",\"git.branchValidationRegex\":\"^(feature|issue|bugfix|release|refactor|hotfix|test|experiment)/([0-9]+|[a-zA-Z]+)\",\"scm.showActionButton\":false,\"npm.exclude\":\"**/apps/**\",\"npm.scriptExplorerExclude\":[\"(update:env)\",\"(prepare)(?!-)\"],\"eslint.validate\":[\"json\"],\"shellformat.path\":\"/usr/local/bin/shfmt\"},\"extensions\":[\"nrwl.angular-console\",\"esbenp.prettier-vscode\",\"firsttris.vscode-jest-runner\",\"ms-azuretools.vscode-docker\",\"temitope1909.dotenv-intellisense\",\"mhutchie.git-graph\",\"github.vscode-pull-request-github\",\"christian-kohler.npm-intellisense\",\"mutantdino.resourcemonitor\",\"gruntfuggly.todo-tree\",\"vue.volar\",\"redhat.vscode-yaml\",\"Lokalise.i18n-ally\",\"quicktype.quicktype\",\"egomobile.vscode-powertools\",\"BriteSnow.vscode-toggle-quotes\",\"tusaeff.vscode-typescript-destructure-plugin\",\"foxundermoon.shell-format\",\"funkyremi.vscode-google-translate\",\"oderwat.indent-rainbow\",\"mikestead.dotenv\",\"ms-vscode.azurecli\",\"ms-azuretools.vscode-azureappservice\",\"mkhl.shfmt\",\"kingoftac.fast-snippets\",\"webreflection.literally-html\",\"bashmish.es6-string-css\",\"christian-kohler.path-intellisense\",\"astro-build.astro-vscode\",\"bradgashler.htmltagwrap\",\"bierner.markdown-checkbox\"]}},\"mounts\":[\"source=cms-devcontainer-extensions,target=/root/.vscode-server/extensions,type=volume\",\"source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind\"],\"containerEnv\":{\"GLOBAL_DEPS\":\"/workspaces/node_modules/.bin\",\"PULUMI\":\"${containerEnv:HOME}/.pulumi/bin\"},\"remoteUser\":\"vscode\",\"remoteEnv\":{\"PATH\":\"${containerEnv:PATH}:${containerEnv:GLOBAL_DEPS}:${containerEnv:PULUMI}\"},\"overrideCommand\":false,\"forwardPorts\":[3000,3333,8000]} ]",
"org.acgov.agency": "= ITD",
"org.acgov.department": "= WEB",
"org.acgov.image.authors": "= Jonathan.Mitchell@acgov.org",
"org.acgov.image.created": "= ",
"org.acgov.image.maintainer": "= itdweb@acgov.org",
"org.acgov.image.title": "= CMS Dev-Container",
"org.acgov.image.version": "= ",
"org.acgov.service": "= CMS-Dev:Content Management System Development Environment",
"org.opencontainers.image.ref.name": "ubuntu",
"org.opencontainers.image.version": "22.04",
"version": "1.0.8"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "31271d7648a8d534a7174cdb8fa5cf034182dc36648072268310955712fe84ff",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {},
"SandboxKey": "/var/run/docker/netns/31271d7648a8",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "6c59377d1562bec023a82070793d845257c8e436783cb9e96d156e112d1585ea",
"Gateway": "172.17.0.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"MacAddress": "02:42:ac:11:00:02",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "de41fb18d0ee70af36080b7fc381d0e849cca0e2054ab2c45153d15a90cbc4c2",
"EndpointID": "6c59377d1562bec023a82070793d845257c8e436783cb9e96d156e112d1585ea",
"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:11:00:02",
"DriverOpts": null
}
}
}
}
]
Maybe the symbolic link's target is missing. I can protect against that, but we can't update the mount point (assuming that would fix the WAYLAND_DISPLAY we set).
Does rebuilding the container make it work again? When does it break after that?
The rebuilding of the container does not solve the situation unfortunately. Same thing happens upon a window reload. For clarity sake, I wiped out all of my images and volumes before initiating a devcontainer build without the cache and same story.
Hello!
So I am using some tooling in my container that requires a window reload sometimes to refresh the settings and I have done this inside the container successfully until recently.
I am in my devcontainer and use the
Developer: Reload Window
command only to now have it break the connection to the container where it didn't used to before. When I do this, I receive this error message.Any insight or help on this would be very much appreciated. Thanks in advance!