Skip to content
Advertisement

Docker container apt-get install can’t find package

I’m trying to spin up a docker container that populates mongo via a node.js script that I have.

With the script below, I get the error :

JavaScript

with this dockerfile:

JavaScript

Why does apt-get not find nodejs?

Advertisement

Answer

Seems i was missing RUN curl --silent --location https://deb.nodesource.com/setup_0.10 | bash - before the apt-get install

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement