Set environment variables to dictate that docker should run a command against a particular machine
docker-machine env localhost
create
с названием localhostdocker-machine create --driver generic --generic-ip-address remotehost --generic-ssh-user username somename
Docker Engine runs natively on Linux systems. If you have a Linux box as your primary system, and want to run docker commands, all you need to do is download and install Docker Engine. However, if you want an efficient way to provision multiple Docker hosts on a network, in the cloud or even locally, you need Docker Machine.
docker-machine create --driver generic --generic-ip-address localhost --generic-ssh-user username default
app_1 | System check identified no issues (0 silenced).
app_1 | February 26, 2016 - 17:47:04
app_1 | Django version 1.9.2, using settings 'kit_it.settings'
app_1 | Starting development server at http://0.0.0.0:8000/
app_1 | Quit the server with CONTROL-C.
app_1 | > /code/apps/frontend/views.py(13)index()
app_1 | 12 import ipdb;ipdb.set_trace()
app_1 | ---> 13 reviews_qs = Reviews.objects.filter(is_active=True)
app_1 | 14 portfolio_qs = Portfolio.objects.all().prefetch_related('portfoliofiles_set')
app_1 |
app_1 | ipdb> Internal Server Error: /
app_1 | Traceback (most recent call last):
app_1 | File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py", line 147, in get_response
app_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
app_1 | File "/usr/local/lib/python3.5/site-packages/django/core/handlers/base.py", line 147, in get_response
app_1 | response = wrapped_callback(request, *callback_args, **callback_kwargs)
app_1 | File "/code/apps/common/decorators.py", line 18, in response
app_1 | context = view(request, *args, **kwargs)
app_1 | File "/code/apps/frontend/views.py", line 13, in index
app_1 | reviews_qs = Reviews.objects.filter(is_active=True)
app_1 | File "/code/apps/frontend/views.py", line 13, in index
app_1 | reviews_qs = Reviews.objects.filter(is_active=True)
app_1 | File "/usr/local/lib/python3.5/bdb.py", line 48, in trace_dispatch
app_1 | return self.dispatch_line(frame)
app_1 | File "/usr/local/lib/python3.5/bdb.py", line 67, in dispatch_line
app_1 | if self.quitting: raise BdbQuit
app_1 | bdb.BdbQuit
app_1 | [26/Feb/2016 17:47:06] "GET / HTTP/1.1" 500 77402