Skip to content

Name mangling issue during "commit" (0.7.0-rc4 branch) #2403

@dudebout

Description

@dudebout

I am using docker-0.7.0-rc4 on Arch Linux and encountered a strange behavior. I have a wheezy-based image and aptitude update works from the command line but not from a Dockerfile.

Command Line Version

zareason% docker run -t ddb/wheezy aptitude update                   
Get: 1 http://ftp.us.debian.org wheezy Release.gpg [1672 B]
Get: 2 http://security.debian.org wheezy/updates Release.gpg [836 B]
Get: 3 http://ftp.us.debian.org wheezy-updates Release.gpg [836 B]
Get: 4 http://security.debian.org wheezy/updates Release [102 kB]
Hit http://ftp.us.debian.org wheezy Release          
Get: 5 http://ftp.us.debian.org wheezy-updates Release [124 kB]
Get: 6 http://security.debian.org wheezy/updates/main amd64 Packages [116 kB]
Hit http://ftp.us.debian.org wheezy/main amd64 Packages         
Get: 7 http://ftp.us.debian.org wheezy/main Translation-en [3851 kB]
Get: 8 http://security.debian.org wheezy/updates/main Translation-en [68.4 kB]
Get: 9 http://ftp.us.debian.org wheezy-updates/main amd64 Packages [2609 B]  
Get: 10 http://ftp.us.debian.org wheezy-updates/main Translation-en [1601 B]
Fetched 4269 kB in 3s (1341 kB/s)                                   

Current status: 2 updates [+2].

Dockerfile Version

FROM ddb/wheezy
RUN aptitude update
zareason% docker build .
Uploading context 10240 bytes
Step 1 : FROM ddb/wheezy
 ---> 1ab3f3d87dcb
Step 2 : RUN aptitude update
 ---> Running in fb74b925281b
Get: 1 http://ftp.us.debian.org wheezy Release.gpg [1672 B]
Get: 2 http://ftp.us.debian.org wheezy-updates Release.gpg [836 B]
Hit http://ftp.us.debian.org wheezy Release
Get: 3 http://ftp.us.debian.org wheezy-updates Release [124 kB]
Hit http://ftp.us.debian.org wheezy/main amd64 Packages
Get: 4 http://ftp.us.debian.org wheezy/main Translation-en [3851 kB]
Get: 5 http://security.debian.org wheezy/updates Release.gpg [836 B]
Get: 6 http://security.debian.org wheezy/updates Release [102 kB]
Get: 7 http://security.debian.org wheezy/updates/main amd64 Packages [116 kB]
Get: 8 http://security.debian.org wheezy/updates/main Translation-en [68.4 kB]
Get: 9 http://ftp.us.debian.org wheezy-updates/main amd64 Packages [2609 B]
Get: 10 http://ftp.us.debian.org wheezy-updates/main Translation-en [1601 B]
Fetched 4269 kB in 3s (1303 kB/s)
Reading package lists...
Error build: exit status 2: tar: var/lib/apt/lists/ftp.us.debian.org_debian_dists_wheezy_main_i18n_Translation\\055en: Cannot stat: No such file or directory
tar: var/lib/apt/lists/ftp.us.debian.org_debian_dists_wheezy\\055updates_Release: Cannot stat: No such file or directory
tar: var/lib/apt/lists/ftp.us.debian.org_debian_dists_wheezy\\055updates_Release.gpg: Cannot stat: No such file or directory
tar: var/lib/apt/lists/security.debian.org_dists_wheezy_updates_main_binary\\055amd64_Packages: Cannot stat: No such file or directory
tar: var/lib/apt/lists/security.debian.org_dists_wheezy_updates_main_i18n_Translation\\055en: Cannot stat: No such file or directory
tar: var/lib/apt/lists/ftp.us.debian.org_debian_dists_wheezy\\055updates_main_i18n_Translation\\055en: Cannot stat: No such file or directory
tar: var/lib/apt/lists/ftp.us.debian.org_debian_dists_wheezy\\055updates_main_binary\\055amd64_Packages: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
:

The problem seems to come from an ASCII conversion not taking place or something of the sort. The \\055s should be dashes -.

Any idea where the problem could come from?

Update: From further investigation, it is clear that the problem happens during the docker commit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions