Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

You want to know how to use docker deamon in pipeline pipe.

Ray March 31, 2022

I am trying to create a pipe image and upload it to AWS ECR to use.

```

#Dockerfile

FROM atlassian/pipelines-awscli
RUN apk add --update docker openrc RUN rc-update add docker boot


```

The calling method is as follows.

```

options:
docker: true
...
services:
- docker
script:
- pipe: docker://$ECR_REPOSITORY/$MY_PIPE_IMAGE:latest

```

I tried to build docker inside the script created with the pipe image, but it is confirmed that the docker deamon cannot be found.

Is there any way?

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2022

Hi @Ray and welcome to the community.

Which command is giving you an error that the docker daemon cannot be found?

Is it the following command where you are using the pipe?

pipe: docker://$ECR_REPOSITORY/$MY_PIPE_IMAGE:latest

Or a different command where you are building the pipe's image?

Could you please post here both the command that is failing and also the full output of the command? (Please mask/replace private/sensitive data from the output prior to sharing, if any)

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events