Skip to main content

Posts

Showing posts from January, 2020

Docker & K8S Errors & Fixes.

Error 1 ###### root@ndz-Lenovo-ideapad-320-15ISK ~ # docker-compose --version Traceback (most recent call last):   File "/usr/bin/docker-compose", line 9, in     load_entry_point('docker-compose==1.8.0', 'console_scripts', 'docker-compose')()   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point     return get_distribution(dist).load_entry_point(group, name)   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point     return ep.load()   File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2229, in load     return self.resolve()   File "/usr/lib/python2.7/dist-packages/requests/compat.py", line 42, in     from .packages.urllib3.packages.ordered_dict import OrderedDict ImportError: No module named ordered_dict Fix ### pip uninstall urllib3 pip install urllib3 roo

Running same command in multiple terminal windows simultaneously (tmux)

You need to install the tool tmux (Terminal Multiplexer). # sudo apt-get update # sudo apt-get install tmux now u can give the command tmux from the terminal. This will open a tmux session . ######################################### Now inside this session u need to login to your first server. ######################################### Now click on the Ctrl + b + " This will split the screen up and down. You need to login to your second server in the second screen. ######################################### Now Enable synchronize-panes by pressing ctrl+b followed by shift+: Next type: "set synchronize-panes on" at the prompt. ######################################### To disable synchronization: set synchronize-panes off Finally  Ctrl + d ,for exiting from the tmux session. check this   link   for more options