Comments (8)
@SJaffa hmm, the file is mounted in, as docker is running on your host machine so can't be edited just in the container.
What happens if you comment out the line specified above in the script? I've not hit the issue personally and it was added a fair while ago and the comment says it's specific to mac OS and codespaces.
This feels like more of a generic "How do I run docker inside a dev container without having to use sudo on mac OS and codespaces" question. Rather than TRE specific.
@stuartleeks shot in the dark, any ideas? Thanks.
from azuretre.
If I comment that line out (or just stop it running that script entirely when it does make all
) then nothing else seems to break but I am having some other Docker issues so not sure if that is related or not at the moment. When I fix my other issue I'll check if this was related or not.
from azuretre.
Actually, I've just replicated it on my machine, WSL:
➜ ~ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
I only upgraded last week, not noticed it before. I can confirm docker group ID in WSL is different to that in the container.
from azuretre.
I can confirm if I stop that script running I see no adverse affects, and docker permissions do not get broken.
from azuretre.
Yep just solved my other devcontainer/docker issue and it was unrelated, so I think removing this script is fine for me, but is there a way to stop this breaking things for anyone else on Linux? Or a different way to fix the original macOS/codespaces problem?
from azuretre.
Have verified that the script is needed on codespaces.
The only solution I can think of at present is to parse something from say docker info
to only run the command in certain scenarios.
from azuretre.
In code spaces, we can check for:
CODESPACES=true
Actually, we could just run docker ps
and check the exit code.
if ! docker ps > /dev/null 2>&1; then
echo "docker ps failed, setting docker.sock permissions"
sudo chgrp docker /var/run/docker.sock
sudo chmod g+rw /var/run/docker.sock
fi
from azuretre.
I've done a PR, maybe you can test the fix and let me know. Thanks.
from azuretre.
Related Issues (20)
- make letsencrypt missing parameters HOT 4
- Custom Linux image unable to connect HOT 2
- Guacamole connections start to fail HOT 19
- Nexus container doesn't start causing Linux VM's to fail deployment HOT 26
- Automation runbook script to stop TRE resources fails if `certs` Application Gateway exists
- Provide PowerShell script to restart all TRE core resources after runbook has stopped them
- Custom actions fail in release 0.12 HOT 1
- Update "Azure AD" references to "Entra ID"
- Firewall rule for Nexus includes *pypi.org
- Unit Tests do not run in VSCode due to module not found errors
- Assign types to all vars and turn on the TFLint rule that validates it.
- Investigate alternative ways to handle dependency on base workspace in the airlock and unrestricted workspaces.
- AML Compute Instance fails to build - Invalid Name format HOT 2
- Release 0.13
- Airlock Processor Unable to Start HOT 16
- Airlock container creation HOT 5
- Update the project to remove dependency on last 4 characters of a resource ID
- Resources are missing ignore_changes = [tags] leading to churn when tags are applied using policy HOT 1
- In E2E tests Firewall doesn't deploy as Subnet not ready
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azuretre.