lib/mkit/app/helpers/docker_helper.rb in mkit-0.4.2 vs lib/mkit/app/helpers/docker_helper.rb in mkit-0.4.3
- old
+ new
@@ -30,9 +30,16 @@
def execute_local(instance_id, cmd)
MKIt::CmdRunner.run("docker exec -it #{instance_id} #{cmd}")
end
#
+ # logs
+ #
+ def logs(instance_id)
+ `docker logs -n 20 #{instance_id}`
+ end
+
+ #
# network
#
def create_network(network_name)
MKIt::CmdRunner.run("docker network create #{network_name}")