Docker Context use revert, ERROR Unexpected end of JSON input

  docker, docker-compose, dockerfile, vue.js

I installed nginx to distribute projects made with Vue to Docker, created docker-compose.yml, and created a setup file.

When running using the docker-compose up -d option.

I get an error message: unexpected end of JSON input.

I entered the command referring to the following url(https://githubmemory.com/repo/docker/compose-cli/issues/1667) to solve this problem, but I have since been unable to use any command.

docker context create ecs myecs --from-env
docker context use myecs

enter image description here

How can I escape this situation and create an image? I need some advice.
I need a way to turn it to the default setting…
The installation environment is like this. Windows Linux kernel.

enter image description here

# Dockerfile
FROM node:14.17.3
WORKDIR /TEST
COPY package*.json ./
COPY . .


RUN mkdir -p node_modules/node-sass/vendor/linux-x64-51
RUN curl -L https://github.com/sass/node-sass/releases/download/v4.5.0/linux-x64-51_binding.node -o node_modules/node-sass/vendor/linux-x64-51/binding.node

RUN npm install
RUN npm rebuild node-sass
RUN npm install axios
RUN npm run serve

EXPOSE 8080
#docker-compose.yml
version: '3'
services:
  vuejs:
    build: "."
    ports:
      - "8080:8080"
    expose:
        - 8080
    ports: 
        - 8080:8080

Source: Docker Questions

LEAVE A COMMENT