# Makie - How to serve WGLMakie visualizations on Docker image?

**URL:** <https://discourse.julialang.org/t/makie-how-to-serve-wglmakie-visualizations-on-docker-image/92048>\
**Category:** Visualization\
**Tags:** makie\
**Created:** [December 23, 2022, 2:01pm UTC](https://discourse.julialang.org/t/makie-how-to-serve-wglmakie-visualizations-on-docker-image/92048 "2022-12-23T14:01:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [December 23, 2022, 2:01pm UTC](https://discourse.julialang.org/t/makie-how-to-serve-wglmakie-visualizations-on-docker-image/92048/1 "2022-12-23T14:01:41Z")

</div>

I am preparing material for the upcoming [JuliaEO2023 workshop](https://aircentre.github.io/JuliaEO), and would like to use WGLMakie on the docker image shared by @gaelforget. I understand that I need to map the port where Makie displays visualizations.

I tried mapping the port 8000 to the docker container with:

```julia
sudo docker run -p 8888:8888 -p 8000:8000 gaelforget/notebooks:latest

```

and then tried adding the following JSServe page to a fresh Pluto notebook:

```julia
port = parse(Int, get(ENV, "JS_SERVE_PORT", "8000"))

using JSServe
Page(listen_port = port)

```

When I import WGLMakie and try to plot, the visualization doesn’t display. An error message mentions that this is probably an issue with JSServe. The same notebook works fine on my host machine. Can anyone help with this? cc: @sdanisch @jules

---

<div class="post-metadata">

**Author:** ![gaelforget](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gaelforget/32/29936_2.png) [@gaelforget](https://discourse.julialang.org/u/gaelforget)\
**Post date:** [January 3, 2023, 7:01pm UTC](https://discourse.julialang.org/t/makie-how-to-serve-wglmakie-visualizations-on-docker-image/92048/2 "2023-01-03T19:01:09Z")

</div>

Seems to work for me with the latest update to the Docker build and just

`docker run -p 8888:8888 gaelforget/notebooks:latest`

By “work” I mean that I can “using WGLMakie” succeeds and plots display in Pluto (& jupyter). I have not tried animating a plot or anything like that though.

Just in case : [WGLMakie](https://docs.makie.org/stable/documentation/backends/wglmakie/)

---

<div class="post-metadata">

**Author:** ![gaelforget](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gaelforget/32/29936_2.png) [@gaelforget](https://discourse.julialang.org/u/gaelforget)\
**Post date:** [January 4, 2023, 5:39am UTC](https://discourse.julialang.org/t/makie-how-to-serve-wglmakie-visualizations-on-docker-image/92048/3 "2023-01-04T05:39:04Z")

</div>

update : I have now added WGLMakie to the Docker image

---

<div class="post-metadata">

**Author:** ![lazarusA](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lazarusa/32/6571_2.png) [@lazarusA](https://discourse.julialang.org/u/lazarusA)\
**Post date:** [January 4, 2023, 10:49am UTC](https://discourse.julialang.org/t/makie-how-to-serve-wglmakie-visualizations-on-docker-image/92048/4 "2023-01-04T10:49:11Z")

</div>

Indeed, it only works with the latest release of JSServe and Makie. @sdanisch pushing it forward ! thanks.
