Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image failed to build without modifyfs #233

Closed
Xuanwo opened this issue Jun 12, 2019 · 2 comments

Comments

@Xuanwo
Copy link

commented Jun 12, 2019

I failed to build image with following Dockerfile and options.

Version

:) makisu version
master-unreleased <-- It's 0.1.11 actually.

Dockerfile

FROM alpine:3.9
LABEL maintainer="Xuanwo <xuanwo@yunify.com>"

RUN apk add --no-cache --update openvpn dumb-init

VOLUME ["/etc/openvpn"]

EXPOSE 1194 1194/udp

ENTRYPOINT ["dumb-init"]

CMD ["/usr/sbin/openvpn", "--cd", "/etc/openvpn/", "--config", "config.ovpn"]

Build error log

:) makisu build -t xuanwo/docker:lastest  ./
{"level":"info","ts":1560321653.408207,"msg":"Starting Makisu build (version=master-unreleased)"}
{"level":"info","ts":1560321653.408749,"msg":"Using build context: /home/xuanwo/Code/yunify/qingstor/docker-openvpn"}
{"level":"info","ts":1560321653.4088597,"msg":"Using local file at /tmp/makisu-storage/cache_key_value.json for cacheID storage"}
{"level":"info","ts":1560321653.4088726,"msg":"No registry information provided, using cached layers"}
{"level":"error","ts":1560321653.4089782,"msg":"Failed to fetch intermediate layer with cache ID 6068140a: find layer 6068140a: layer not found in cache"}
{"level":"info","ts":1560321653.4089913,"msg":"* Stage 1/1 : (alias=0,latestfetched=-1)"}
{"level":"error","ts":1560321653.4090784,"msg":"failed to execute build plan: execute stage: build stage 0: fs not allowed to be modified"}

Did I miss something else?

@yiranwang52

This comment has been minimized.

Copy link
Collaborator

commented Jun 12, 2019

if you do not have --modifyfs, then the functionality is very limited - you cannot use RUN in dockerfile.

@Xuanwo

This comment has been minimized.

Copy link
Author

commented Jun 13, 2019

Well, I must miss the To build Dockerfiles that contain RUN, xxx statement, tks.

@Xuanwo Xuanwo closed this Jun 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.