#docker (2019-06)
All things docker
Archive: https://archive.sweetops.com/docker/
2019-06-01
![Maxim Tishchenko avatar](https://secure.gravatar.com/avatar/853372c681dc96b95f42adcb88b0cb3f.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0007-72.png)
hello everyone,
I have a question about npm install -> postinstall
inside docker
I have super small config (exmple)
{
"private": true,
"scripts": {
"postinstall": "echo test"
}
}
when I execute npm i --unsafe-perm
everything goes well
but when I execute npm ci --unsafe-perm
I’ve got error message
npm ERR! Cannot read property 'length' of undefined
![Maxim Tishchenko avatar](https://secure.gravatar.com/avatar/853372c681dc96b95f42adcb88b0cb3f.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0007-72.png)
does anybody know what to do?
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
Have you tried building the container without running this command in the Dockefile. Then start the container with a shell, and triage that way? Sometimes it’s easier to understand what is going on
![Maxim Tishchenko avatar](https://secure.gravatar.com/avatar/853372c681dc96b95f42adcb88b0cb3f.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0007-72.png)
hmmm
![Maxim Tishchenko avatar](https://secure.gravatar.com/avatar/853372c681dc96b95f42adcb88b0cb3f.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0007-72.png)
no
![Maxim Tishchenko avatar](https://secure.gravatar.com/avatar/853372c681dc96b95f42adcb88b0cb3f.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0007-72.png)
I’ve tried. - the same error
Step 5/7 : RUN npm ci --unsafe-perm
---> Running in 8781a79481f0
npm ERR! Cannot read property 'length' of undefined
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-06-01T19_33_54_463Z-debug.log
![Maxim Tishchenko avatar](https://secure.gravatar.com/avatar/853372c681dc96b95f42adcb88b0cb3f.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0007-72.png)
the problem is in postinstall
![Maxim Tishchenko avatar](https://secure.gravatar.com/avatar/853372c681dc96b95f42adcb88b0cb3f.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0007-72.png)
but I have no any idea what is wrong with npm ci
and postinstall
![Maxim Tishchenko avatar](https://secure.gravatar.com/avatar/853372c681dc96b95f42adcb88b0cb3f.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0007-72.png)
seems like i found the reason!
![Maxim Tishchenko avatar](https://secure.gravatar.com/avatar/853372c681dc96b95f42adcb88b0cb3f.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0007-72.png)
npm 6.5.0 works
![Maxim Tishchenko avatar](https://secure.gravatar.com/avatar/853372c681dc96b95f42adcb88b0cb3f.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0007-72.png)
npm upper version doesn’t work
2019-06-06
2019-06-09
![rj avatar](https://secure.gravatar.com/avatar/544279bff4331f477a416e51fbff0236.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0016-72.png)
has anyone tried running a desktop on docker. Target is to deploy a virtual desktop solution using containers. Tried LXC containers, but had issues with the networking when the core server was deployed on cloud. Seems docker will be a better alternative, then again not easier to configure as a workstation like lxc/lxd.
2019-06-19
![btai avatar](https://avatars.slack-edge.com/2019-09-04/736463433650_34701761239ea7ba8207_72.jpg)
how do you guys periodically update your docker images? looking moreso for automated solutions
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
What specifically is the objective?
![Erik Osterman (Cloud Posse) avatar](https://secure.gravatar.com/avatar/88c480d4f73b813904e00a5695a454cb.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0023-72.png)
Pull in latest packages?
2019-06-20
![Issif avatar](https://avatars.slack-edge.com/2019-12-02/848866457345_6b17c415c518a84814ce_72.png)
docker watchtower
2019-06-28
![github140 avatar](https://secure.gravatar.com/avatar/afcb56b638b9dc7f3541d9d13accee94.jpg?s=72&d=https%3A%2F%2Fa.slack-edge.com%2Fdf10d%2Fimg%2Favatars%2Fava_0016-72.png)
I guess @btai meant, maintaining, building and updating docker images (and push the new tagged release to a registry). Do you know any CI/CD examples for that purpose?
![btai avatar](https://avatars.slack-edge.com/2019-09-04/736463433650_34701761239ea7ba8207_72.jpg)
meant moreso fo rsecutity
![btai avatar](https://avatars.slack-edge.com/2019-09-04/736463433650_34701761239ea7ba8207_72.jpg)
i use codefresh for wut ur talking about