Comments (3)
I've faced the same problem and this is my solution.
If no arguments are provided to mktemp
it tries to create files at /tmp
which does not exist in the kaniko container.
Create /tmp
# mktemp
mktemp: No such file or directory
# mkdir /tmp
# mktemp
/tmp/tmp.ieAGKD
Or
use
mktemp -p /existing_directory
Should work.
Having mktemp
work out of the box by providing a /tmp
folder would be a good thing.
from kaniko.
Thanks for filing this @BeyondEvil , would you mind indicating which version of kaniko image are you using and could you try on previous release to find if this is a regression?
Also may I check with you why mktemp
is regarded as present?
from kaniko.
Thanks for filing this @BeyondEvil , would you mind indicating which version of kaniko image are you using and could you try on previous release to find if this is a regression?
Version is v1.21.1-debug.
Sure, I'll do a regression test and get back to you.
Also may I check with you why
mktemp
is regarded as present?
Because ls -la
lists it:
❯ docker run -ti --rm --entrypoint "/bin/sh" gcr.io/kaniko-project/executor:v1.21.1-debug -c 'ls -la /busybox | grep mktemp'
-rwxr-xr-x 398 0 0 1312536 May 18 2023 mktemp
from kaniko.
Related Issues (20)
- Copy with wildcard fails HOT 10
- Both `--kaniko-dir` and `KANIKO_DIR` needs to be set
- Kaniko not able to auth against Nexus OSS HOT 2
- Recipe for adding bash to Kaniko HOT 1
- Required Socket Files Ignored
- error building image: stream error: stream ID 13; NO_ERROR; received from peer
- During image push and pull, error building image: stream error: stream ID 13; NO_ERROR; received from peer
- Even when `KANIKO_NO_PUSH="true"` there is a info message with "Pushed"
- Creating a custom kaniko image using a multi-stage Dockerfile fails
- Generated image is missing files generated via RUN HOT 2
- [TEST FLAKE] Intermittently seeing - `No such image: localhost:5000/<test-image>` HOT 3
- [Bug] --registry-mirror does not work with warmer since v1.21.0 HOT 1
- error removing bin to make way for new symlink: unlinkat //bin/sh: permission denied
- Question regarding a vulnerability (CVE-2023-45288), vuln scans & results publishing HOT 1
- Setting `--kaniko-dir` (or `KANIKO_DIR`) clobbers `DOCKER_CONFIG` if it is explicitly set. HOT 2
- Execution takes too long for "Unpacking rootfs as cmd COPY" HOT 1
- "GET https://example.com/users/sign_in: unexpected status code 200 OK" when pushing to self-hosted GitLab with Kaniko HOT 5
- compression=zstd not working starting from v1.16
- After run kaniko in container, image is changed and part of local context stop to work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kaniko.