The third and final part of our exploration of Features and creating a simple feature. Now it’s time to dive deeper into Linux scripting to create an entrypoint for the non-root users.
Sometimes scripting in containers just isn’t enough. We need modular, reusable components to create repeatable practices. We need to implement our first Feature.
One of the newest additions to the dev container specification is Features. Today I’ll explore the basics of the specification and how it lets you create reusable components for your dev containers.
Let’s get a bit crazy for 2023. In this post, we’ll see if we can run some Docker commands from inside our Alpine dev container using Docker-from-Docker and a bit of configuration.
You’re working in a development container. You need access to a port on the host for a proxy SSH connection to a Git server. Sounds tough, right? Turns out it’s simple.
If you need to connect to multiple Git hosts or environments (like EMU and GHEC) with minimal effort, then SSH may provide the options you need to make it painless.
There are many ways to automate the process of marking directories as “safe” to avoid the “detected dubious ownership in repository” message. Last week, I discussed how to modify the devcontainer.json. This week, let’s see an alternative using Dotfiles.
It’s always best to run containers with the least privileges required. Unfortunately, that may result in Git operations that fail with the message “detected dubious ownership in repository”. The trick to eliminating this is quite simple …