Having some odd issues getting docker to behave on a windows host, but on a linux host its fine. Its just a simple node container that can run gulp (and will eventually be attached to other LAMP like containers).
my docker-compose.yml
version: '2' services: node: build: ./node container_name: cont_node ports: - "35733:35733" volumes: - ~/docker/project/www:/var/www/html/ command: "sh -c 'npm install && bower install && gulp'" my Dockerfile
FROM node:4-onbuild RUN npm config set registry http://registry.npmjs.org/ # Define working directory. WORKDIR /var/www/html/ COPY ./package.json /var/www/html/ RUN npm install -g gulp-cli CMD ["bash"] so when I run
docker-compose up node
it returns
Container command 'sh' not found or does not exist.
Being that I understood the command command ran on the container (not the host), this should be fine? I have tried it with /bin/sh too and having the same problem. /bin/sh does exist, seems to be a sym link to dash if thats relevant? Looks identical to my linux host where this works fine.
Any ideas what is going wrong?
On a side note, anytime I use docker from a linux host it works like a dream, but windows I always lose hours wrestling with windows specific issues, npm installs dont seem to work properly or hang or take ages, issues with volumes not in my documents, etc. Is docker on windows / boot2docker fubar'ed or just me?
commandin compose just run that on the container? not on the host? docs.docker.com/compose/compose-file/#command