docker-compose
,vscode
I'm developing a react app.
Since the latest version of docker desktop has arrived (3.0.1), when I try to start the container after updating, I get the following error.
ERROR: for node Cannot start service node: Mounts denied: approving/Users/ryota/Library/Mobile Documents/com ~ apple ~ CloudDocs/path/to/file: file does not exist
ERROR: Encountered errors while bringing up the project.
So, docker desktopPreferences
FromUse gRPC FUSE for file sharing
By turning offdocker-compose up
The command went well and started successfully.
However, until now, after changing the code with vscode,compiling
Was displayed and the browser was updated, but after updating docker desktop, it became impossible.
The following isDockerfile
Whendocker-compose.yml
is.
FROM node: 15.3.0-alpine3.10
WORKDIR/usr/src/app
version: "3"
services: services:
node:
build:
context: ..
dockerfile: Dockerfile
volumes:
--./:/usr/src/app
command: sh -c "npm start"
ports: ports:
-"3000: 3000"
stdin_open: true
What I tried
As for what I trieddocker-compose build
After rebuilding withdocker-compose up
I started it with a command, but it didn't work.
Also, normallynpm start
When I started the local server with, the change was detected and the browser was updated.
Furthermore, after updating os to Big Sur, I ran docker-compose build again to start the container and the situation did not change.
I looked it up, but I didn't have a clue, so I asked a question. If i have any information, please let me know. We look forward to hearing from you.
-
Answer # 1
Related articles
- ruby - i can't use sass after updating catalina
- html - after updating, i am troubled that the image is not saved
- kubernetes on docker desktop (win) wants to connect to localhost of host machine from pod
- mysql - about routing after updating user information (beginner)
- docker desktop settings
- python - how to get background_color after updating with pysimplegui
- want to bind to localhost port 80 in docker desktop for windows + istio environment
- unable to run after updating unity
- postgresql - want to use postico for db in docker container in local environment
- react native - after updating to xcode version 1121, reactnative until now stopped working
- how to run docker desktop wsl 2 from docker-desktop
- Steps for Docker to build its own local mirror repository
- Exit after docker container runs (how can it keep running)
- Docker local import image/save image/load image/delete image method
- Detailed migration of the local docker container to the server
- vue implements the function of updating the list in time after clicking the attention
- linux - [docker] after creating a debian container, it is not displayed by ls
- Use kind and Docker to start the local Kubernetes environment
- python - i get an error even after updating the tensorflow&tfp version
- login to mysql fails
- i want to reuse declarations in docker compose
- docker container can't start
- how to access docker container with terminal software
- i built a development environment of wordpress with docker-compose, but it becomes english
- i want to build an environment for laravel with laradock
- nginx - cannot display "403 forbidden" web on docker container
- ruby on rails - npm error in building react_on_rails gem environment with docker
- php - move laravel developed in local environment to vps
docker desktop
ofPreferences
I turned off Use gRPC FUSE for file sharing fromON
It was fixed when I returned to.