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

Running kaniko exeutor inside another container #3031

Open
sushama-kothawale opened this issue Feb 27, 2024 · 0 comments
Open

Running kaniko exeutor inside another container #3031

sushama-kothawale opened this issue Feb 27, 2024 · 0 comments
Labels
area/container For all bugs related to the kaniko container kind/bug Something isn't working priority/p1 Basic need feature compatibility with docker build. we should be working on this next.

Comments

@sushama-kothawale
Copy link

sushama-kothawale commented Feb 27, 2024

Hi,

I am trying to use kaniko executor gfor building the multi language applications. Below is the setup details:
gitlab-runner pods --> custom docker container --> kaniko-executor container

for the above setup I am trying below command:
docker run -v /code/devops-python-boilerplate:/workspace gcr.io/kaniko-project/executor:latest --dockerfile=/workspace/Dockerfile --destination=devops-python-boilerplate:tag --verbosity=debug

Error: error resolving dockerfile path: please provide a valid path to a Dockerfile within the build context with --dockerfile
Usage:
  executor [flags]
  executor [command]

So after debugging it got to know that volume is not getting mounted to docker container.
docker run --privileged -v /code:/workspace alpine ls /workspace/
it return empty

can someone help here? how to run kaniko on docker-in-docker setup

@JeromeJu

@QuanZhang-William QuanZhang-William added kind/bug Something isn't working priority/p1 Basic need feature compatibility with docker build. we should be working on this next. area/container For all bugs related to the kaniko container labels Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/container For all bugs related to the kaniko container kind/bug Something isn't working priority/p1 Basic need feature compatibility with docker build. we should be working on this next.
Projects
None yet
Development

No branches or pull requests

2 participants