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
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
Most helpful comment
@mikeerickson easiest way
In laradock folder :
docker-compose exec workspace bash