I am using Docker and Docker cannot COPY
symlinked files into the image. But the files that are symlinked are not in the 'build context'. So I was going to copy them into the build context with cp, but that's really slow. Is there some way to share the files on two different locations on disk without have to copy them and without using symlinks?
`cp` vs `rsync` vs something faster
4.1k Views Asked by Alexander Mills At
1
There are 1 best solutions below
Related Questions in LINUX
- Can somebody please help me to avoid internal server error | htaccess | apache2ctl | backtrack
- Can't create Wordlist in Backtrack (crunch)
- Wireless sniffing to catch URL visited by user - Kismet
- Issue with running Bash script in linux.
- In kernel backtrace what is the meaning of single underscore
- Access Denied for DVWA in Xampp running in Backtrack 5 r3
- Error message using Ralink 802.11 n WLAN in Backtrack 5 R3
- apt-get failed to fetch error
- backtrack on virtualbox not getting ip address
- backtrack 5 wont boot
Related Questions in MACOS
- Can somebody please help me to avoid internal server error | htaccess | apache2ctl | backtrack
- Can't create Wordlist in Backtrack (crunch)
- Wireless sniffing to catch URL visited by user - Kismet
- Issue with running Bash script in linux.
- In kernel backtrace what is the meaning of single underscore
- Access Denied for DVWA in Xampp running in Backtrack 5 r3
- Error message using Ralink 802.11 n WLAN in Backtrack 5 R3
- apt-get failed to fetch error
- backtrack on virtualbox not getting ip address
- backtrack 5 wont boot
Related Questions in DOCKER
- Can somebody please help me to avoid internal server error | htaccess | apache2ctl | backtrack
- Can't create Wordlist in Backtrack (crunch)
- Wireless sniffing to catch URL visited by user - Kismet
- Issue with running Bash script in linux.
- In kernel backtrace what is the meaning of single underscore
- Access Denied for DVWA in Xampp running in Backtrack 5 r3
- Error message using Ralink 802.11 n WLAN in Backtrack 5 R3
- apt-get failed to fetch error
- backtrack on virtualbox not getting ip address
- backtrack 5 wont boot
Related Questions in RSYNC
- Can somebody please help me to avoid internal server error | htaccess | apache2ctl | backtrack
- Can't create Wordlist in Backtrack (crunch)
- Wireless sniffing to catch URL visited by user - Kismet
- Issue with running Bash script in linux.
- In kernel backtrace what is the meaning of single underscore
- Access Denied for DVWA in Xampp running in Backtrack 5 r3
- Error message using Ralink 802.11 n WLAN in Backtrack 5 R3
- apt-get failed to fetch error
- backtrack on virtualbox not getting ip address
- backtrack 5 wont boot
Related Questions in CP
- Can somebody please help me to avoid internal server error | htaccess | apache2ctl | backtrack
- Can't create Wordlist in Backtrack (crunch)
- Wireless sniffing to catch URL visited by user - Kismet
- Issue with running Bash script in linux.
- In kernel backtrace what is the meaning of single underscore
- Access Denied for DVWA in Xampp running in Backtrack 5 r3
- Error message using Ralink 802.11 n WLAN in Backtrack 5 R3
- apt-get failed to fetch error
- backtrack on virtualbox not getting ip address
- backtrack 5 wont boot
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This is not allowed and it won't be
https://github.com/moby/moby/issues/1676
If you have common files which are needed in every container then I would put all of them in a shared image and use docker multi build options
Again still not the most elegant solution but, because when you do docker build the current context is zipped and sent to the docker daemon, soft links won't work.
You can create hard links but then hard links point to inodes and they don't show you which file they point to. Soft links on other tell you where they point to but the build doesn't sent them.
So your call really what you want to do and how you want to.