Containers - vishwanathj/technical GitHub Wiki
-
Container fundamentals: https://medium.com/@hmquan08011996/kubernetes-story-linux-namespaces-and-cgroups-what-are-containers-made-from-d544ac9bd622
-
command to run a container by mounting the current directory as a volume ==> docker run -it -v ${PWD}:/tmp vishwanathj/vish-ansible:16.04 bash
-
Docker inside docker ==>
A) https://itnext.io/docker-in-docker-521958d34efd E.g; docker run -it -v ~/.ssh:/root/.ssh -v /var/run/docker.sock:/var/run/docker.sock container_image bash
B) from Mac to Ubuntu container: E.gl docker run -it -v ~/.ssh:/root/.ssh -v /var/run/docker.sock:/var/run/docker.sock -v /usr/local/bin/docker:/usr/bin/docker container_image bash
-
A method to copy docker images --> https://stackoverflow.com/questions/23935141/how-to-copy-docker-images-from-one-host-to-another-without-using-a-repository
-
Best Practice: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/
-
Docker in Docker --> https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/
-
http://www.ruthealee.co.uk/containers/2019/04/24/containers-namespaces.html
-
https://www.ruthealee.co.uk/containers/2019/05/09/containers-cgroups.html
-
https://medium.com/kokster/mount-volumes-into-a-running-container-65a967bee3b5
-
https://sreeninet.wordpress.com/2016/12/23/docker-in-docker-and-play-with-docker/
-
https://thenewstack.io/container-networking-breakdown-explanation-analysis/
-
https://thenewstack.io/container-networking-landscape-cni-coreos-cnm-docker/
-
Docker run as root user --> https://blog.koley.in/2018/root-user-in-docker-container
-
Command to get into docker bash if entrypoint is preset
docker run -it --entrypoint /bin/bash <image>
-
Restarting a container on Reboot with Podman and Systemd https://www.tutorialworks.com/podman-systemd/
-
Running multiple process inside a container using supervisord https://advancedweb.hu/supervisor-with-docker-lessons-learned/
-
How to run as a non-root inside Docker container https://www.yegor256.com/2014/08/29/docker-non-root.html
-
Kata containers: https://www.thinglink.com/card/1401236075678007299
- https://www.redhat.com/en/blog/secure-your-containers-one-weird-trick
- https://www.redhat.com/sysadmin/privileged-flag-container-engines
- https://www.tutorialworks.com/podman-rootless-volumes/
- https://opensource.com/article/18/12/podman-and-user-namespaces
- https://opensource.com/article/18/10/podman-more-secure-way-run-containers
- https://www.redhat.com/sysadmin/behind-scenes-podman
- https://www.redhat.com/sysadmin/supplemental-groups-podman-containers