Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Docker build failed: no such container:path

Edited

I have a docker container:

/usr/bin/docker run --volume /home/bamboo/builds/xml-data/build-dir/360449/WEBSITE-BD-JOB3:/home/bamboo/builds/xml-data/build-dir/360449/WEBSITE-BD-JOB3 --volume /var/atlassian/application-data/bamboo/temp:/var/atlassian/application-data/bamboo/temp --detach --name 511d9b8d-cd36-4d53-92c9-78a94c2be6795570564 --net=host shamilnunhuck/kaniko-debug:shell tail -f /dev/null

and I assume Bamboo is trying to copy my script over?

/usr/bin/docker cp /opt/atlassian/bamboo/temp/initialiseDockerContainer.sh7168219084128755568.tmp 511d9b8d-cd36-4d53-92c9-78a94c2be6795570564:/tmp/initialiseContainer.sh

However, it fails:

Error: No such container:path: 511d9b8d-cd36-4d53-92c9-78a94c2be6795570564:/tmp
Exit code: 1, output: STDOUT:  Beginning to execute external process for build 'Shamil Website - Build - Publish Image #25 (WEBSITE-BD-JOB3-25)'\n ... running command line: \n/usr/bin/docker cp /opt/atlassian/bamboo/temp/initialiseDockerContainer.sh7168219084128755568.tmp 511d9b8d-cd36-4d53-92c9-78a94c2be6795570564:/tmp/initialiseContainer.sh\n ... in: /home/bamboo/builds/xml-data/build-dir/360449/WEBSITE-BD-JOB3\nSTDERR: Error: No such container:path: 511d9b8d-cd36-4d53-92c9-78a94c2be6795570564:/tmp
Failed to start docker container 511d9b8d-cd36-4d53-92c9-78a94c2be6795570564
com.atlassian.bamboo.docker.DockerException: Error running Docker run command
        at com.atlassian.bamboo.docker.DockerContainerServiceImpl.run(DockerContainerServiceImpl.java:130)
        at com.atlassian.bamboo.v2.build.agent.docker.DockerContainerControllerImpl.startContainerIfRequired(DockerContainerControllerImpl.java:98)
        at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:154)
        at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:130)
        at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118)
        at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:124)
        at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:108)
        at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
        at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
        at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
        at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
        at java.lang.Thread.run(Thread.java:748)
Caused by: com.atlassian.utils.process.ProcessException: Error executing /usr/bin/docker cp /opt/atlassian/bamboo/temp/initialiseDockerContainer.sh7168219084128755568.tmp 511d9b8d-cd36-4d53-92c9-78a94c2be6795570564:/tmp/initialiseContainer.sh
        at com.atlassian.bamboo.docker.DockerContainerServiceImpl.execute(DockerContainerServiceImpl.java:302)
        at com.atlassian.bamboo.docker.DockerContainerServiceImpl.execute(DockerContainerServiceImpl.java:273)
        at com.atlassian.bamboo.docker.DockerContainerServiceImpl.run(DockerContainerServiceImpl.java:112)
        ... 11 more

Bamboo can delete the container, so I assume it's still running. Any ideas why it's failing?

1 answer

Is this log output coming from a Docker task running a "Build a Docker image" command?

Also, what version of Bamboo are you running?

This is the output of the first task (which is a script) for.a job which is isolated by docker.

 

I'm using Bamboo 7.0.4. 

I'm sorry I may not be of much help - I've used Bamboo to build Docker containers, but haven't used isolated Docker containers to build apps.

FWIW: It would appear that Bamboo is attempting to load the image shamilnunhuck/kaniko-debug:shell in the first line.  I would guess that is failing and therefor why the cp command is failing.  When you run a docker image, it's possible for it to "succeed" however if the process running inside the container fails or quits, the container will stop and no longer be available.

If you have SSH access to your Bamboo server, you can try poking around in the Docker registry to see if that image exists - then try running it with the -i command instead of the --detach to see what's happening... just some ideas.

I figured it out - the tmp path didn't exist on the container.

LOL - so exactly what the error said... of course!

Glad you figured it out!

Like Shamil Nunhuck likes this
Jack Nolddor _Sweet Bananas_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
Sep 15, 2020

Which was the problem? Im suffering a similar issue on my Bamboo instance.

@Jack Nolddor _Sweet Bananas_ The container didn't have a /tmp directory in it 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events