Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###run docker-machine from another cmd on Windows
- ```sh
- docker-machine env --shell cmd my-default
- ```
- ### see all containers
- ```sh
- docker ps -a
- ```
- ### remove images
- ```sh
- docker rmi {id}
- ```
- ### inspect container
- ```sh
- docker inspect {container-name}
- ```
- ### run node app in docker
- -v -> volume
- -w -> working directory
- ```sh
- docker run -p 4000:3000 -v $(pwd):/var/www -w "/var/www" node npm start
- ```
- ### remove container with volumes
- ```sh
- docker rm -v {containerName}
- ```
- ### connect via ssh to docker mashine
- user: docker
- password: tcuser
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement