Comments (3)
We use the docker
CLI for building the image. It appears .*
is excluded by default, see https://docs.docker.com/engine/reference/builder/#dockerignore-file. Maybe having a .dockerignore
file with !.*
would revert that default?
from cli.
Hi @chrmarti, I don't see that rule mentioned in the docs. Are you talking about the warning at the end, where it says "For historical reasons, the pattern .
is ignored."? I took that to mean that .
is ignored, not .*
. I suppose this could be easily tested by running docker build
manually and seeing if it copies hidden files. I'll get to that today when I have time. If that is the Docker default, I suppose there's no sense fighting it; it might just be worth a call out in the docs, with one of the workarounds that I mentioned above.
from cli.
Hey @chrmarti, sorry for not getting back sooner. Turns out I just wasn't using ls -a
when I listed files in my container. ๐คฆโโ๏ธ When building a devcontainer as described above or just building an image with docker build
, I can confirm that hidden files are being copied. I feel pretty sheepish. Gonna close this issue now and hope nobody ever googles it. ๐
from cli.
Related Issues (20)
- Ability to provide version to publish HOT 6
- Speed up installing dotfiles by loading only latest commit
- project-name changed after updating 0.56 -> 0.60 HOT 10
- obtuse and confusing error with local feature under WSL HOT 4
- Feature Request: Allow devcontainer up to Start Only the Specified Service and Its Dependencies HOT 4
- Adding labels to containers build by devcontainer cli HOT 5
- `compose.yaml` `name` breaks when using vars `${VAR}` HOT 3
- Forward docker credentials from docker cred helper HOT 1
- Add option to get the info on running containers HOT 2
- Apply --remove-existing-containerโ before initializeCommand
- Error when devcontainer up HOT 2
- Push in quay.io/buildah/stable HOT 3
- 2244 HOT 2
- Consistently getting: command failed: {0} Exit code 1 Start: Run in container: test -f '/var/devcontainer/.patchEtcProfileMarker' HOT 1
- `runArgs` in Dev Containers image isn't shared to `.devcontainers.json` workspace HOT 3
- Option --omit-config-remote-env-from-metadata is not documented HOT 2
- Devcontainer over ssh hanging forever when wsl2 vm has freezed. HOT 2
- OpenTelemetry tracing HOT 2
- Issues executing binary inside container with devcontainer exec HOT 5
- devcontainer up not working with podman and docker-compose file HOT 5
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 cli.