Skip to content

Docker build inside sysbox container results in "Error processing tar file(exit status 1): operation not permitted" #254

@ctalledo

Description

@ctalledo

When running Docker inside a sysbox container, a docker build may fail as follows:

~ # docker build -t myimage .                                                                                                                                                                                                                                                                                                 
Sending build context to Docker daemon  3.072kB                                                                                                                
Step 1/2 : FROM ubuntu:18.04                                                                                                                                   
18.04: Pulling from library/ubuntu                                                                                                                             
6e0aa5e7af40: Pull complete                                                                                                                                                                                                                                                                                                   
d47239a868b3: Pull complete                                                                                                                                    
49cbb10cca85: Extracting [==================================================>]     189B/189B                                                                                                                                                                                                                                  
failed to register layer: Error processing tar file(exit status 1): operation not permitted                

The sysbox container in this case was based on the docker:18.04-dind image (i.e., dockerd 18.04 runs inside the sysbox container).

In addition, the error occurred when building a Dockerfile that started with the ubuntu 18.04 base image (e.g., "FROM ubuntu:18.04"). The error was not seen when using other base images (e.g., alpine).

The error does not reproduce when using dockerd >= 19.03 inside the sysbox container.

Sysbox version was 0.3.0.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions