Skip to content

Instantly share code, notes, and snippets.

@kev-bi
Last active February 5, 2025 19:35
Show Gist options
  • Save kev-bi/09b099dfec32567ef5e1e4afbcce8430 to your computer and use it in GitHub Desktop.
Save kev-bi/09b099dfec32567ef5e1e4afbcce8430 to your computer and use it in GitHub Desktop.
Docker dump
kevinbi@test-dual-stack:~$ sudo groupadd -f docker
kevinbi@test-dual-stack:~$ sudo usermod -aG docker $USER
kevinbi@test-dual-stack:~$ newgrp docker
kevinbi@test-dual-stack:~$ sudo systemctl start docker
kevinbi@test-dual-stack:~$ docker run --name python -it --rm python:3.12.8-bullseye /bin/bash
Unable to find image 'python:3.12.8-bullseye' locally
3.12.8-bullseye: Pulling from library/python
478cb7364610: Pull complete
f0388f0d5bf1: Pull complete
5d473f760e53: Pull complete
66d32181a1ed: Pull complete
1a024bc0f75d: Pull complete
00acd977d318: Pull complete
d8c42829cffb: Pull complete
Digest: sha256:bfe0ccee825082a2cfaf6be4531dc21928a743a001ef995c8635e4bb3e467b17
Status: Downloaded newer image for python:3.12.8-bullseye
root@dc69490b3419:/# pip install -U "huggingface_hub[cli]"
Collecting huggingface_hub[cli]
Downloading huggingface_hub-0.28.1-py3-none-any.whl.metadata (13 kB)
Collecting filelock (from huggingface_hub[cli])
Downloading filelock-3.17.0-py3-none-any.whl.metadata (2.9 kB)
Collecting fsspec>=2023.5.0 (from huggingface_hub[cli])
Downloading fsspec-2025.2.0-py3-none-any.whl.metadata (11 kB)
Collecting packaging>=20.9 (from huggingface_hub[cli])
Downloading packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
Collecting pyyaml>=5.1 (from huggingface_hub[cli])
Downloading PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB)
Collecting requests (from huggingface_hub[cli])
Downloading requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting tqdm>=4.42.1 (from huggingface_hub[cli])
Downloading tqdm-4.67.1-py3-none-any.whl.metadata (57 kB)
Collecting typing-extensions>=3.7.4.3 (from huggingface_hub[cli])
Downloading typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting InquirerPy==0.3.4 (from huggingface_hub[cli])
Downloading InquirerPy-0.3.4-py3-none-any.whl.metadata (8.1 kB)
Collecting pfzy<0.4.0,>=0.3.1 (from InquirerPy==0.3.4->huggingface_hub[cli])
Downloading pfzy-0.3.4-py3-none-any.whl.metadata (4.9 kB)
Collecting prompt-toolkit<4.0.0,>=3.0.1 (from InquirerPy==0.3.4->huggingface_hub[cli])
Downloading prompt_toolkit-3.0.50-py3-none-any.whl.metadata (6.6 kB)
Collecting charset-normalizer<4,>=2 (from requests->huggingface_hub[cli])
Downloading charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (35 kB)
Collecting idna<4,>=2.5 (from requests->huggingface_hub[cli])
Downloading idna-3.10-py3-none-any.whl.metadata (10 kB)
Collecting urllib3<3,>=1.21.1 (from requests->huggingface_hub[cli])
Downloading urllib3-2.3.0-py3-none-any.whl.metadata (6.5 kB)
Collecting certifi>=2017.4.17 (from requests->huggingface_hub[cli])
Downloading certifi-2025.1.31-py3-none-any.whl.metadata (2.5 kB)
Collecting wcwidth (from prompt-toolkit<4.0.0,>=3.0.1->InquirerPy==0.3.4->huggingface_hub[cli])
Downloading wcwidth-0.2.13-py2.py3-none-any.whl.metadata (14 kB)
Downloading InquirerPy-0.3.4-py3-none-any.whl (67 kB)
Downloading fsspec-2025.2.0-py3-none-any.whl (184 kB)
Downloading packaging-24.2-py3-none-any.whl (65 kB)
Downloading PyYAML-6.0.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (767 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 767.5/767.5 kB 41.9 MB/s eta 0:00:00
Downloading tqdm-4.67.1-py3-none-any.whl (78 kB)
Downloading typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Downloading filelock-3.17.0-py3-none-any.whl (16 kB)
Downloading huggingface_hub-0.28.1-py3-none-any.whl (464 kB)
Downloading requests-2.32.3-py3-none-any.whl (64 kB)
Downloading certifi-2025.1.31-py3-none-any.whl (166 kB)
Downloading charset_normalizer-3.4.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (145 kB)
Downloading idna-3.10-py3-none-any.whl (70 kB)
Downloading pfzy-0.3.4-py3-none-any.whl (8.5 kB)
Downloading prompt_toolkit-3.0.50-py3-none-any.whl (387 kB)
Downloading urllib3-2.3.0-py3-none-any.whl (128 kB)
Downloading wcwidth-0.2.13-py2.py3-none-any.whl (34 kB)
Installing collected packages: wcwidth, urllib3, typing-extensions, tqdm, pyyaml, prompt-toolkit, pfzy, packaging, idna, fsspec, filelock, charset-normalizer, certifi, requests, InquirerPy, huggingface_hub
Successfully installed InquirerPy-0.3.4 certifi-2025.1.31 charset-normalizer-3.4.1 filelock-3.17.0 fsspec-2025.2.0 huggingface_hub-0.28.1 idna-3.10 packaging-24.2 pfzy-0.3.4 prompt-toolkit-3.0.50 pyyaml-6.0.2 requests-2.32.3 tqdm-4.67.1 typing-extensions-4.12.2 urllib3-2.3.0 wcwidth-0.2.13
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager, possibly rendering your system unusable.It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv. Use the --root-user-action option if you know what you are doing and want to suppress this warning.
[notice] A new release of pip is available: 24.3.1 -> 25.0
[notice] To update, run: pip install --upgrade pip
root@dc69490b3419:/#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment