Try `exec` instead of `run`. `run` runs the command in a new container, so each time you perform `docker-compose run web <command>`, a new copy of the container is created. See the documentation: https://docs.docker.com/compose/reference/run/
I am trying to upgrade pip version in dockersnj@snj-ThinkPad-T440p:~/school$ sudo docker-compose run web pip install --upgrade pip Starting school_db_1 ... doneCollecting pipDownloading https://files.pythonhosted.org/packages/d8/f3/ (1.4MB)413bab4ff08e1fc4828dfc59996d72 1917df8e8583ea85385d51125dceff /pip-19.0.3-py2.py3-none-any. whl 100% |████████████████████████████████| 1.4MB 62kB/s Installing collected packages: pipFound existing installation: pip 9.0.1Uninstalling pip-9.0.1:Successfully uninstalled pip-9.0.1Successfully installed pip-19.0.3snj@snj-ThinkPad-T440p:~/school$ sudo docker-compose run web pip --version Starting school_db_1 ... donepip 9.0.1 from /usr/local/lib/python3.6/site-packages (python 3.6) snj@snj-ThinkPad-T440p:~/school$
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ba933ef5-7178-4b54-925f-0ee42ad456c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment