uname

How do I interpret the output of php_uname

可紊 提交于 2019-12-01 08:27:38
问题 From the manual I got the information: mode is a single character that defines what information is returned: 'a': This is the default. Contains all modes in the sequence "s n r v m". 's': Operating system name. eg. FreeBSD. 'n': Host name. eg. localhost.example.com. 'r': Release name. eg. 5.1.2-RELEASE. 'v': Version information. Varies a lot between operating systems. 'm': Machine type. eg. i386. So I created a function function interpret_php_uname(){ $release_info["os_name"] = php_uname('s')

$(uname -a) returning the same in docker host or any docker container

一笑奈何 提交于 2019-11-30 06:55:51
问题 Why $(uname -a) returns the same Linux kernel than the host machine inside a docker container? uname -a #=> Linux leo 3.13.0-55-generic #94-Ubuntu SMP Thu Jun 18 00:27:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux docker run -ti --rm ubuntu:vivid-20150611 uname -a #=> Linux 147c3aff216b 3.13.0-55-generic #94-Ubuntu SMP Thu Jun 18 00:27:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Even though my host machine is Ubuntu 14.04 (trusty) while the container is Ubuntu 15.04 (vivid) and should have kernel

$(uname -a) returning the same in docker host or any docker container

依然范特西╮ 提交于 2019-11-28 23:24:49
Why $(uname -a) returns the same Linux kernel than the host machine inside a docker container? uname -a #=> Linux leo 3.13.0-55-generic #94-Ubuntu SMP Thu Jun 18 00:27:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux docker run -ti --rm ubuntu:vivid-20150611 uname -a #=> Linux 147c3aff216b 3.13.0-55-generic #94-Ubuntu SMP Thu Jun 18 00:27:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Even though my host machine is Ubuntu 14.04 (trusty) while the container is Ubuntu 15.04 (vivid) and should have kernel 3.19 Docker uses the host operating system kernel, there is no custom or additional kernel inside the