You can run Docker containers inside a Docker container.
To allow this,
you have to pass the docker socks into the container
using the option -v /var/run/docker.sock:/var/run/docker.sock.
For more discussions,
please refer to
How To Run Docker in Docker Container [3 Easy Methods …
Compare Data Frames Using DataCompy in Python
Installation¶
Hands on the Python module subprocess
General Tips¶
The method
subprocess.runis preferred over older high-level APIs (subprocess.call,subprocess.check_callandsubprocess.check_output). The methodsubprocess.Popen(which powers the high-level APIs) can be used if you need advanced controls. When running a shell command usingsubprocess.run,Avoid using system shell (i.e., avoid using
shell=True) for 2 reasons. First, avoid shell injection attack. Second, there is no need for you to manually escape special characters in the command.
Hands on pathlib.Path
Understand Execuation of SQL Statements
Execuation Order¶
A SQL statement selects rows and columns from a big (rectangular) table.
You put columns that you want to select after SELECT
and rows you want to select after FROM.
A SQL statement is executed as follows.
First,
the (INNER|LEFT|RIGHT|FULL) JOIN (ON) is executed if any (see more explanation later).
Second,
the WHERE