Closed vladshablinsky closed 8 years ago
You should send a pull request that checks if the file /brickstrap/_tar-exclude
exists in the docker image. The check should go here and only set BRICKSTRAP_TAR_EXCLUDE_OPTION
if the file exists.
The check might look something like this:
if docker run --rm $BRICKSTRAP_DOCKER_IMAGE_NAME test -f /brickstrap/_tar-exclude; then
BRICKSTRAP_TAR_EXCLUDE_OPTION="--exclude-from /brickstrap/_tar-exclude"
fi
But you probably really want to exclude some files, like /usr/sbin/policy-rc.d
.
@dlech I've opened a PR as you suggested. Btw, It fixes the error, which is not so much of surprise, though. :) Thanks!
But you probably really want to exclude some files, like /usr/sbin/policy-rc.d.
Do I put it into brickstrap.sh
? Any assistance regarding the PR is appreciated. I am able to add some additional commits if it's needed.
Hi, I'm trying to run
brickstrap
on my docker image I imported to docker, but it fails. I had an image on my OS X machine and exported it to tar into shared folder and then imported it from ubuntu VM into docker. Now I'm getting the following error while runningcreate-tar
.I tried both running brickstrap as a shell script and installed using
apt
.Here are my tar version and docker on the guest.
Here is my docker on the host.
What should I do? Thanks!