Sha256: b2db0e8f8d8a2cca52b5a8f542f64f1716b4085365ab8699ba573fb44c25096c
Contents?: true
Size: 190 Bytes
Versions: 1
Compression:
Stored size: 190 Bytes
Contents
require "inside_docker/version" class Object def inside_docker? File.readlines("/proc/1/sched").each do |line| return line.strip != "systemd (1, #threads: 1)" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inside_docker-0.1.1 | lib/inside_docker.rb |