# Node-red in docker container - apt command not found

**URL:** https://discourse.nodered.org/t/node-red-in-docker-container-apt-command-not-found/59895
**Category:** General
**Tags:** docker
**Created:** [15 March 2022 17:18 UTC](https://discourse.nodered.org/t/node-red-in-docker-container-apt-command-not-found/59895 "2022-03-15T17:18:12Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lab](https://avatars.discourse-cdn.com/v4/letter/l/ba8739/32.png) [@lab](https://discourse.nodered.org/u/lab)
#### Post date: [15 March 2022 17:18 UTC](https://discourse.nodered.org/t/node-red-in-docker-container-apt-command-not-found/59895/1 "2022-03-15T17:18:12Z")

</div>

I have node-red installed on my docker server running on ubuntu 21.10:  
docker run -it -p 1880:1880 -v node\_red\_data:/data --name mynodered nodered/node-red

And wanted to install the imagemagick software in the same container but just discovered that the apt command is missing:

lab@docker:~$ sudo docker exec -it nodered bash  
bash-5.0$ apt update  
bash: apt: command not found  
bash-5.0$

Can you help ?  
Is it possible to have the apt command available?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [15 March 2022 17:30 UTC](https://discourse.nodered.org/t/node-red-in-docker-container-apt-command-not-found/59895/2 "2022-03-15T17:30:30Z")

</div>

The official node-red docker image runs on alpine : [Running under Docker : Node-RED](https://nodered.org/docs/getting-started/docker#image-variations)

Alpine uses `apk` instead of `apt`

This might help: [ImageMagick installation in Docker Alpine - Stack Overflow](https://stackoverflow.com/questions/46415869/imagemagick-installation-in-docker-alpine)

> [@lab](#):
>
> Is it possible to have the apt command available?

If you customise the image, sure.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [14 May 2022 17:31 UTC](https://discourse.nodered.org/t/node-red-in-docker-container-apt-command-not-found/59895/3 "2022-05-14T17:31:07Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
