You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Image size is drastically getting reduced but missed python pip packages
Post Changes i am not able to find the pip packages
root@devops-02:/opt/minicon# docker run -it sanity_test:v5 bash
bash-4.4# python
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import paramiko
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named paramiko
The text was updated successfully, but these errors were encountered:
when you include a whole folder (as I think that you try with -E /usr/local/lib/python2.7/dist-packages/), you need to use flag -I instead of -E. So your commandline will be the next one:
Dockerfile::-
FROM ubuntu:latest
RUN apt-get update && apt-get install -y ssh iproute2 iputils-ping python python-pip python3.4 python3-pip git
RUN pip install paramiko nose PrettyTable
Command which i am running ..
minidock -i sanity_test:v2 -t sanity_test:v5 --apt -E bash -E 'ssh localhost' -E ip -E id -E curl -E vim -E git -E cat -E ls -E /usr/local/lib/python2.7/dist-packages/ -E python -E python3 -E pip -E pip3 -E rm -E mkdir -E 'ping -c 1 www.google.co.in' -E wget
Image size is drastically getting reduced but missed python pip packages
Post Changes i am not able to find the pip packages
root@devops-02:/opt/minicon# docker run -it sanity_test:v5 bash
bash-4.4# python
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
The text was updated successfully, but these errors were encountered: