Commit c44ad77a authored by Victor Nikulshin's avatar Victor Nikulshin
Browse files

Rewrite `docker.connect` task to use SSH

parent fe898544
......@@ -119,7 +119,7 @@ def connect():
with lcd(env.workspace):
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')))
print(red('Docker container {}_container is not running, it should be running to be able to connect.'))
Supports Markdown
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