See this issue.
Docker best practise to Control and configure Docker with systemd.
-
Create
daemon.jsonfile in/etc/docker:{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # views.py | |
| # | |
| class ResumeNew(ProtectedMixin, CreateView): | |
| model = Resume | |
| form_class = ResumeForm | |
| success_url = '/accounts/profile/' | |
| template_name = 'resume/new.html' | |
| def get_initial(self): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Example configuration: | |
| # upstream fastcgi_backend { | |
| # # use tcp connection | |
| # # server 127.0.0.1:9000; | |
| # # or socket | |
| # server unix:/var/run/php5-fpm.sock; | |
| # } | |
| # server { | |
| # listen 80; | |
| # server_name mage.dev; |