Docker: Error pulling image, executable not found in $ PATH

I am trying to pull out some image and a strange error:

sudo docker pull wnameless/oracle-xe-11g  
Pulling repository wnameless/oracle-xe-11g
f8d224b82290: Error pulling image (latest) from wnameless/oracle-xe-11g, Untar exit status 1 exec: "xz": executable file not found in $PATH found in $PATH ror downloading dependent layers 
2014/11/28 23:08:26 Error pulling image (latest) from wnameless/oracle-xe-11g, Untar exit status 1 exec: "xz": executable file not found in $PATH

      

Strange, but the Ubuntu image works fine

sudo docker run -i -t ubuntu

      

System version: Linux Mint 17 Qiana Kernel version 3.13.0

+3


source to share


2 answers


As a result, this issue was only on the latest version of Docker (lxc-docker package, version> 1.3.x). I removed this package and installed the docker.io package (v. 1.0.1). Now everything is all right.



+1


source


Issue 9327 was introduced in 1.3.2 and should be fixed in 1.4.0, so 1.3.1 should be fine (apart from the lack of security fixes that caused this regression). If you are creating images with mkimage.sh in 1.3.2, the following fix will help:



$ > git diff
diff --git a/contrib/mkimage.sh b/contrib/mkimage.sh
index cd2fa74..fda16ab 100755
--- a/contrib/mkimage.sh
+++ b/contrib/mkimage.sh
@@ -71,7 +71,7 @@ nameserver 8.8.8.8
 nameserver 8.8.4.4
 EOF

-tarFile="$dir/rootfs.tar.xz"
+tarFile="$dir/rootfs.tar.bz2"
 touch "$tarFile"

 (
@@ -82,7 +82,7 @@ touch "$tarFile"
 echo >&2 "+ cat > '$dir/Dockerfile'"
 cat > "$dir/Dockerfile" <<'EOF'
 FROM scratch
-ADD rootfs.tar.xz /
+ADD rootfs.tar.bz2 /
 EOF

 # if our generated image has a decent shell, let set a default command

      

+2


source







All Articles