I had recently learnt a bit of Docker(which provides containerization process).
Here are some of my learning points from it.
Let us start first with very basic question:
What is Docker:
Docker is a platform for sysadmins and developers to DEPLOY, DEVELOP and RUN applications with containers.
The use of Linux containers to deploy applications is called containerization.
Flexible: Even the most complex applications can be containerized. Lightweight: Containers leverage and share the host kernel. Interchangeable: You can deploy updates and upgrades on-the-fly. Portable: You can build locally, deploy to the cloud, and run anywhere. Scalable: You can increase and automatically distribute container replicas. Stackable: You can stack services vertically and on-the-fly.
What is an Image: We could say Image as an executable which has all things needed to run an application EG--> code, libraries, environment variables, config files.
What is Container: Whenever we run an image then its executable form is called Container.
Prerequisites: Ubuntu/Linux server then in case you need to publish your images to Docker repository an account on Docker HUB.
Steps for installing Docker:
1st Step: Use curl command to install its binaries along with apt-key to make sure downloads are valid.
2nd Step: Add Docker repository to APT resources: 3rd Step: Update apt-get for Ubuntu server(where we are going to learn Docker) 4th Step: To make sure we are going to install Docker from Docker's repo rather than default Ubuntu 16.04 repo run following. 5th Step: Finally Install Docker now. 6th Step: Run systemctl to make sure that this service is added in rc boot of server and should come up after reboot of server. 7th Step: Now lets run only docker command and see what output is coming. 8th Step: Check for docker version by running as follows. 9th Step: Pull first image from Docker's repository as follows.
Output approximate will be as follows.
Will post further details on how to call a basic Python program through Docker image and show how it will NOT require packages(needed by that program) for your Ubuntu server(they will be their in containers to support programs not in local server).
Hello,
Can somebody explain me the relationship between /sbin and /etc directories ? what is the relationship between them and what are the roles of files such as rcd.1 etc? (1 Reply)
Recently i found this for give to docker a "personal" ip
ip addr del 10.1.1.133/24 dev eth0
ip link add link eth0 dev eth0m type macvlan mode bridge
ip link set eth0m up
ip addr add 10.1.1.133/24 dev eth0m
route add default gw 10.1.1.1On container i did
... (0 Replies)
Have completed "Phase I" of our project "Prototyping New Responsive Mobile UNIX.COM", I am now moving to "Phase II" which will be changing many of the menus and buttons to use Javascript and CSS for the mobile site menus.
For example, here is the new "main side menu" for the mobile site (below).... (63 Replies)
Actually I was facing the following issue while building my Yocto SDK on Docker container
sudo docker build --tag="akash/eclipse-che:6.5.0-1" --tag="akash/eclipse-che:latest" /home/akash/dockerimage.yocto.support/
Sending build context to Docker daemon 26.93MB
Step 1/5 : FROM eclipse/cpp_gcc
... (3 Replies)
I don't know why, but the rendering of my code mucks up the spacing and indentation, despite being correct in the original file. I'm having issues getting the following script to run (specifically the nested script at the end of the docker command near the end of the script; I think I'm not passing... (2 Replies)
Next in the pipeline, thinking I will work on postbit (the core of the posts) and try to get Bootstrap and badges working in postbit and not break the quick editors in the post.
Note, I had to turn off the scrollbars in postbit for now because when I turn them on, it breaks the quick editor in... (11 Replies)
Update:
I have completed the first phase of revamping the "Advanced Search" page using Bootstrap (desktop not mobile yet):
https://www.unix.com/search.php
https://www.unix.com/search.php
I may change this to a Bootstrap modal later and change the CSS a bit more; but for now it is much... (0 Replies)