Skip to content

Attach to the current docker container does not work #25

Description

@kasir-barati

When I try to attach to the running container it throw this error:

> Executing task: npm run watch <


> node-skeleton@1.0.0 watch
> tsc -w -p ./

sh: line 1: tsc: command not found
The terminal process "bash '-c', 'npm run watch'" terminated with exit code: 127.

Press any key to close the terminal.

What I did:

  1. git clone git@github.com:tvvignesh/node-skeleton.git
  2. Open integrated VSCode terminal and execute this command in it: docker-compose up --build
  3. Now in VSCode I press ctrl + shift + d and try to attach to docker

uname -a output:

Linux kasir 5.10.84-1-MANJARO #1 SMP PREEMPT Wed Dec 8 09:50:30 UTC 2021 x86_64 GNU/Linux

docer version output:

Client:
 Version:           20.10.11
 API version:       1.41
 Go version:        go1.17.3
 Git commit:        dea9396e18
 Built:             Sat Nov 20 12:57:52 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server:
 Engine:
  Version:          20.10.11
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.3
  Git commit:       847da184ad
  Built:            Sat Nov 20 12:57:08 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v1.5.8
  GitCommit:        1e5ef943eb76627a6d3b6de8cd1ef6537f393a71.m
 runc:
  Version:          1.0.3
  GitCommit:        v1.0.3-0-gf46b6ba2
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions