Commit c44ad77a authored by Victor Nikulshin's avatar Victor Nikulshin

Rewrite `docker.connect` task to use SSH

parent fe898544
...@@ -119,7 +119,7 @@ def connect(): ...@@ -119,7 +119,7 @@ def connect():
""" """
with lcd(env.workspace): with lcd(env.workspace):
if docker_isrunning('{}_container'.format(env.project_name)): if docker_isrunning('{}_container'.format(env.project_name)):
local('docker exec -it {}_container bash'.format(env.project_name)) local('ssh drupalizer@{} -i {}'.format(env.container_ip, h.fab_path('docker/ssh/id_rsa')))
else: else:
print(red('Docker container {}_container is not running, it should be running to be able to connect.')) print(red('Docker container {}_container is not running, it should be running to be able to connect.'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment