Skip to content

Instantly share code, notes, and snippets.

@ggtools
Created June 18, 2014 07:11
Show Gist options
  • Save ggtools/179dad4909e9359a0663 to your computer and use it in GitHub Desktop.
Save ggtools/179dad4909e9359a0663 to your computer and use it in GitHub Desktop.
Differences between ls -al at the end of the build and when running the image in a container
tep 17 : RUN whoami
---> Running in 3240a56670c9
restx
---> f80416f3ec29
Error removing intermediate container 7ec7bc8a9760: The given container is <nil>
Removing intermediate container 3240a56670c9
Step 18 : RUN ls -al ${HOME}
---> Running in efd468ae1f51
total 12
drwxr-xr-x 1 restx restx 76 Jun 18 06:56 .
drwxr-xr-x 1 root root 182 Jun 18 06:56 ..
-rw-r--r-- 1 restx restx 220 Apr 16 21:23 .bash_logout
-rw-r--r-- 1 restx restx 3392 Apr 16 21:23 .bashrc
drwxr-xr-x 1 restx restx 10 Jun 18 06:56 .ivy2
-rw-r--r-- 1 restx restx 675 Apr 16 21:23 .profile
drwxr-xr-x 1 restx restx 138 Jun 18 06:56 .restx
---> f71504f3d4a5
$ docker run --rm -t -i ggtools/restx-docker:exp ls -al /var
/lib/restx
total 28
drwxr-xr-x 9 root root 4096 Jun 18 07:04 .
drwxr-xr-x 26 root root 4096 Jun 18 07:04 ..
-rw-r--r-- 1 restx restx 220 Apr 16 21:23 .bash_logout
-rw-r--r-- 1 restx restx 3392 Apr 16 21:23 .bashrc
drwxr-xr-x 5 root root 4096 Jun 18 07:04 .ivy2
-rw-r--r-- 1 restx restx 675 Apr 16 21:23 .profile
drwxr-xr-x 7 root root 4096 Jun 18 07:04 .restx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment