Sunday, 9 June 2019

How to install sth in kubernetes container

I want to install mysql-connector==2.1.6 in python container. One way is writing this command in DockerFile

RUN pip install mysql-connector==2.1.6

And make images and use that image in kubernetes. But I want to run python images and after that install mysql-connector==2.1.6 But after crashing container or rebooting it ,I should install mysql-connector==2.1.6 again. After a lot of search I see cloud_provider that install packages in running container. But it does not explain how it do that. Now I have kubernetes and I want to permanently install some packages on running container. What should I do?

I know I can commit container but I do not want it because I do not know when the user install packages.



from How to install sth in kubernetes container

No comments:

Post a Comment