# Slicer Docker images

**URL:** https://discourse.slicer.org/t/slicer-docker-images/508
**Category:** Development
**Tags:** build
**Created:** [June 15, 2017, 3:46pm UTC](https://discourse.slicer.org/t/slicer-docker-images/508 "2017-06-15T15:46:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)
#### Post date: [June 15, 2017, 3:46pm UTC](https://discourse.slicer.org/t/slicer-docker-images/508/1 "2017-06-15T15:46:08Z")

</div>

Hi,

Just to document that Slicer docker images are now rebuilt every night. This allow to keep working the CircleCI test checking that PR and commits pushed to Slicer code base are not breaking the built.

See [GitHub - Slicer/SlicerDocker: Build, package, test, and run 3D Slicer and Slicer Extensions in Docker.](https://github.com/thewtex/SlicerDocker)

Scripts driving the build of the docker images, push to dockerhub and update of the repository currently lives on `metroplex.kitware` Linux build machine. I will publish them when I am back from travelling mid July.

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/2/2218dc89d668c736e106e7656701359db4db5da6.png)

Thanks  
Jc

---

<div class="post-metadata">

### Author: ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)
#### Post date: [December 27, 2017, 11:42pm UTC](https://discourse.slicer.org/t/slicer-docker-images/508/2 "2017-12-27T23:42:05Z")

</div>

I don’t know if this is expected, but I noticed that “official” slicer docker images take very very long time to start, when used for the purpose of running CLIs:

```auto
docker run -ti slicer/slicer-build /usr/src/Slicer-build/Slicer-build/Slicer \
  --launch RobustStatisticsSegmenter --help

0.02s user 0.02s system 0% cpu 1:53.94 total

```

Same CLI run using a docker that downloads and unpacks Slicer binary takes orders of magnitude less time:

```auto
docker run -ti fedorov/slicerdockers:4.8.1 /opt/slicer/Slicer \
  --launch RobustStatisticsSegmenter --help

0.01s user 0.01s system 1% cpu 1.312 total

```

Maybe it makes sense to add an “official” Slicer docker image that uses unpacked binary for the users that want to use Slicer functionality from docker, not for building/testing Slicer extensions.

---

<div class="post-metadata">

### Author: ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)
#### Post date: [December 28, 2017, 8:44am UTC](https://discourse.slicer.org/t/slicer-docker-images/508/3 "2017-12-28T08:44:30Z")

</div>

> [@fedorov](#):
>
> Maybe it makes sense to add an “official” Slicer docker image that uses unpacked binary for the users that want to use Slicer functionality from docker, not for building/testing Slicer extensions.

Agreed. That would be a very useful addition.

(Currently, the docker files are hosted on [GitHub - Slicer/SlicerDocker: Build, package, test, and run 3D Slicer and Slicer Extensions in Docker.](https://github.com/thewtex/SlicerDocker) during the project week, we will transfer the repository to the Slicer GitHub organization. )

In the mean time, do not hesitate to fork that repo.

Also worth noting that the scripts used to rebuild and publish the docker images on a daily basis are stored at [GitHub - Slicer/SlicerDockerUpdate: Helper scripts allowing to automatically re-build and publish Slicer docker images](https://github.com/Slicer/SlicerDockerUpdate)

---

<div class="post-metadata">

### Author: ![tbillah](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tbillah/32/4139_2.png) [@tbillah](https://discourse.slicer.org/u/tbillah)
#### Post date: [August 28, 2019, 6:47pm UTC](https://discourse.slicer.org/t/slicer-docker-images/508/4 "2019-08-28T18:47:31Z")

</div>

Where is the dockerfile for this image?

[https://hub.docker.com/r/slicer/buildenv-qt5-centos7](https://hub.docker.com/r/slicer/buildenv-qt5-centos7)

---

<div class="post-metadata">

### Author: ![unnmdnwb3](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/unnmdnwb3/32/4527_2.png) [@unnmdnwb3](https://discourse.slicer.org/u/unnmdnwb3)
#### Post date: [August 29, 2019, 11:20am UTC](https://discourse.slicer.org/t/slicer-docker-images/508/5 "2019-08-29T11:20:56Z")

</div>

Hi @tbillah, you can find the Dockerfile for the image on the [SlicerBuildEnvironment](https://github.com/Slicer/SlicerBuildEnvironment/blob/master/Docker/qt5-centos7/Dockerfile)!
