julien-duponchelle / docker-osx

Fast and easy installation of Docker on OS X
1.02k stars 70 forks source link

Installation with home-brew gnu-tar fails #56

Open adamjt opened 10 years ago

adamjt commented 10 years ago

I used homebrew to install gnu-tar in the past because of a problem with OS X's built-in tar. This causes docker-osx installation to fail. The output of docker-osx shell is:

Installing Docker 0.11.1 client...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2885k  100 2885k    0     0  1181k      0  0:00:02  0:00:02 --:--:-- 1181k
tar: /docker/docker: Not found in archive
tar: usr/local/bin/docker: Not found in archive
tar: Exiting with failure status due to previous errors
dgcoffman commented 9 years ago

I have not installed gnu-tar, I'm using bsdtar 2.8.3 - libarchive 2.8.3 which is the OSX default, and get the same failure.

dgc@dgcwork:~$ docker-osx
Installing Docker 1.2.0 client...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
tar: usr/local/bin/docker: Not found in archive
tar: Error exit delayed from previous errors.
dgc@dgcwork:~$ which tar
/usr/bin/tar
dgc@dgcwork:~$ tar --version
bsdtar 2.8.3 - libarchive 2.8.3
joaomilho commented 8 years ago

+1

✗ which tar
/usr/bin/tar
✗ tar --version
bsdtar 2.8.3 - libarchive 2.8.3
✗ docker-osx shell
Installing Docker 1.2.0 client...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
tar: usr/local/bin/docker: Not found in archive
tar: Error exit delayed from previous errors.
wfiskz commented 8 years ago

+1

curl -L http://github.com/mxcl/homebrew/tarball/master | tar xz –strip 1 -C /usr/local % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 100 124 0 124 0 0 31 0 --:--:-- 0:00:03 --:--:-- 78 100 139 0 139 0 0 32 0 --:--:-- 0:00:04 --:--:-- 135k 100 2182k 100 2182k 0 0 168k 0 0:00:12 0:00:12 --:--:-- 463k tar: /usr/local: Not found in archive tar: -C: Not found in archive tar: 1: Not found in archive tar: –strip: Not found in archive tar: Error exit delayed from previous errors.