https://github.com/jonathanbeber/docker-playground
https://github.com/jonathanbeber/docker-playground
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jonathanbeber/docker-playground
- Owner: jonathanbeber
- Created: 2015-10-07T11:41:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-20T10:45:54.000Z (over 10 years ago)
- Last Synced: 2025-10-23T16:42:59.646Z (8 months ago)
- Language: Makefile
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker Playground
## Some examples
### Updating Dockerfile after changes, you need run:
```sh
[sudo] docker build -t user/project:tag .
```
Where `user/project:tag` is an alias to run your Docker container.
`user/project` can be your own Dockerhub user and project name, and `:tag` is an alias that can be the version of your project.
After that, you can run this with command:
```sh
[sudo] docker run user/project:tag
```
### Mounting directories
```
[sudo] docker run -v /home/user/host_dir:/docker/image/dir docker_image
```
Where `/home/user/host_dir` is the directory's path (must be full path) that gonna be mounted into the docker's image in `/docker/image/dir`.
## Links
- [GUI apps with docker :shipit:](http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/)
- [Docker for DevOps: From development to production](https://www.kickstarter.com/projects/nickjj/docker-for-devops-from-development-to-production)
- [Bash style](https://github.com/progrium/bashstyle)