Category : javascript

I have a running container which exposes port 9229. I can debug it by first attaching vs code to the container but, is it possible to do that without having to attach VS Code first, and instead, just directly from my host machine? It gives me the following error when I try to run debug. ..

Read more

I have a problem with passing envs via docker compose, below is my code: docker-compose.yml version: ‘3.7’ services: app: build: context: . dockerfile: Dockerfile volumes: – .:/usr/src/app – /usr/src/app/node_modules ports: – 8080:8080 expose: – ‘8080’ command: npm run start environment: MYSQL_HOST: ${MYSQL_HOST} MYSQL_PORT: ${MYSQL_PORT} MYSQL_USERNAME: ${MYSQL_USERNAME} MYSQL_PASSWORD: ${MYSQL_PASSWORD} MYSQL_DATABASE: ${MYSQL_DATABASE} Dockerfile FROM node:12.17-alpine as builder ..

Read more

I’m using Backpack to build my node app. When running the app locally, the app itself and the build artefacts are doing okay. But when I move the build results to a Docker image and try to run it, I get the following errors: Error: Cannot find module ‘source-map-support/register’ Require stack: – /home/app/main.js at Function.Module._resolveFilename ..

Read more

I have project in nuxt js which works fine without docker in my Windows OS. I tried install it inside docker and run but get error with message: #9 126.5 ERROR in ./pages/index.vue #9 126.5 Module not found: Error: Can’t resolve ‘./main/index.js?vue&type=script&lang=js&’ in ‘/web/pages’ #9 126.5 @ ./pages/index.vue 2:0-61 3:0-56 3:0-56 10:2-8 #9 126.5 @ ..

Read more

i am running docker-compose up docker-compose up Creating network "pepiniere-ifrs16_default" with the default driver Pulling package-push (registry.bsc.aws.societegenerale.com/package-push:4.2.0)… 4.2.0: Pulling from package-push aeb7866da422: Pull complete 9c32de404df9: Extracting [==================================================>] 340.5MB/340.5MB 6356cf617686: Download complete ERROR: failed to register layer: ApplyLayer exit status 1 stdout: stderr: lchown /git-2.9.3/git-gui/version: invalid argument Source: Docker..

Read more