wget https://bootstrap.pypa.io/pip/2.7/get-pip.py --2021-10-15 09:54:40-- https://bootstrap.pypa.io/pip/2.7/get-pip.py Resolving bootstrap.pypa.io (bootstrap.pypa.io)... 151.101.228.175, 2a04:4e42:1a::175 Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|151.101.228.175|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 1908226 (1.8M) [text/x-python] Saving to: ‘get-pip.py’
100%[=============================================================================================================================================>] 1,908,226 191KB/s in 10s
python get-pip.py DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Collecting pip<21.0 Downloading pip-20.3.4-py2.py3-none-any.whl (1.5 MB) |████████████████████████████████| 1.5 MB 8.5 kB/s Collecting wheel Downloading wheel-0.37.0-py2.py3-none-any.whl (35 kB) Installing collected packages: pip, wheel Successfully installed pip-20.3.4 wheel-0.37.0
pip -V pip 20.3.4 from /usr/lib/python2.7/site-packages/pip (python 2.7)
PIP安装RunLike
接下来就用pip安装runlike
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
pip install runlike DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. Collecting runlike Downloading runlike-0.7.0.tar.gz (7.1 kB) Collecting Click Downloading click-7.1.2-py2.py3-none-any.whl (82 kB) |████████████████████████████████| 82 kB 6.8 kB/s Building wheels for collected packages: runlike Building wheel for runlike (setup.py) ... done Created wheel for runlike: filename=runlike-0.7.0-py2-none-any.whl size=4375 sha256=289a5dc0e05cc920aaecdb221b5bb4a7c4e8aafd75afae2df83ec93c0e85309f Stored in directory: /root/.cache/pip/wheels/9f/14/a5/50a3dd45b5a7b7ad90b4652d9055c0b04755fadbe619c136f3 Successfully built runlike Installing collected packages: Click, runlike Successfully installed Click-7.1.2 runlike-0.7.0
我来看看这个RunLike是怎么用的
1 2 3 4 5 6 7 8 9
runlike --help Usage: runlike [OPTIONS] CONTAINER
Shows command line necessary to run copy of existing Docker container.
Options: --no-name Do not include container name in output -p, --pretty --help Show this message and exit.