Laradock: Where is Node / NPM?

Created on 7 Dec 2016  路  3Comments  路  Source: laradock/laradock

I have activated Node and NVM (as well as Yarn) in the docker-compose.yml. Trying to figure out how to SSH to this container?

    workspace:
        build:
            context: ./workspace
            args:
                - INSTALL_XDEBUG=true
                - INSTALL_MONGO=false
                - INSTALL_NODE=true
                - INSTALL_YARN=true

Most helpful comment

@mikeerickson easiest way
In laradock folder :

docker-compose exec workspace bash

All 3 comments

I tried to access the workspace container

$ docker exec -i -t b0dc6c844f5e bin/bash

and receive the following error

rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused \"exec: \\\"bin/bash\\\": stat bin/bash: no such file or directory\"\n"

Figured it out (how embarrassing, i looked at this forever and couldn't find the issue) The call to bin/bash did not have leading forward slash (see below)

$ docker exec -i -t b0dc6c844f5e bin/bash

should have been

$ docker exec -i -t b0dc6c844f5e /bin/bash

@mikeerickson easiest way
In laradock folder :

docker-compose exec workspace bash

Was this page helpful?
0 / 5 - 0 ratings