Forums

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

How do you enable experimental features for Docker on Bitbucket Pipelines?

Keith Ward
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 30, 2018

I want to squash my docker image so that I can remove intermediate containers that contain secrets.  Docker allows you to do this with the squash flag:

 docker build -t $IMAGE_NAME --build-arg SECRET_KEY=$SECRET_KEY --squash .

 The problem is pipelines doesn't have experimental features enabled:

"--squash" is only supported on a Docker daemon with experimental features enabled

 Is there a way to enable these features for Docker in Bitbucket Pipelines?

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 5, 2018

Hi Keith,

Currently we do not support having Docker run in experimental mode. You can open a feature request for it to be supported.

The Docker team recommends you use multi-stage builds instead of squash to remove intermediate layers. There have also been some discussions around remove the squash flag too. Multi-stage builds are supported in Pipelines.

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events