Docker – nsenter tool to access the Docker container

Installing nsenter in /usr/loca/bin directory

$ sudo docker run -v /usr/local/bin:/target jpetazzo/nsenter

Get the process id of container

PID=$(docker inspect --format {{.State.Pid}} <container>)

Launching a shell inside the container

$ sudo nsenter --target $PID --mount --uts --ipc --net --pid

Run a ls command inside the container

$ sudo nsenter --target $PID --mount --uts --ipc --net --pid ls
Advertisements
Posted in docker, Programming | Leave a comment

C++17 – C++17 feature and boost library documentation

https://www.bfilipek.com/2017/01/cpp17features.html
https://theboostcpplibraries.com/

Posted in C++, Programming | Leave a comment

C++17 – Learning STL algorithm

https://www.fluentcpp.com/2018/07/10/105-stl-algorithms-in-less-than-an-hour/
http://www.fluentcpp.com/getTheMap/

Posted in C++, Programming | Leave a comment

C++ – Core dump Linux utility tool from MS

https://github.com/Microsoft/ProcDump-for-Linux

Posted in C++, Programming | Leave a comment

CMake – Adding debug information


-DCMAKE_C_FLAGS_DEBUG="-D_DEBUG" -DCMAKE_BUILD_TYPE=Debug

Posted in C++, Programming | Leave a comment

CMake – How to create C++ projects with modern style of CMake

Resources for CMake
https://github.com/onqtam/awesome-cmake

Modern CMake example with third-party library

https://github.com/nsclass/Optional

Posted in C++, Programming | Leave a comment

Rust – Functional Programming for Rust

https://github.com/algermissen/rustz

Posted in Functional Programming, Programming, Rust | Leave a comment