Friday, 29 May 2020

alpine安装telnet

每一次需要在 alpine下面使用 telnet的时候都想当然地使用 apk add telnet,实在是忍受不了,我要写一篇博文来记录一下,正确的安装方式应当是:

No comments:

Post a Comment

How does one detect if one is running within a docker container within Python?

  import os, re path = "/proc/self/cgroup" def is_docker (): if not os.path.isfile(path): return False with open (pa...