Difference between revisions of "Containers and virtual machines"

From Wiki at Neela Nurseries
Jump to navigation Jump to search
(→‎^ Container Software: - Ycombinator dot com forum post, id=7950326 on Docker one app versus many apps per container.)
m (Comment out older top-of-page links)
 
(115 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
+
<!--
 
<center>
 
<center>
[[Unix_and_Linux_config|Unix and Linux config]] :: [[Containers_and_virtual_machines|Containers]] :: [[Compute_clusters|Clusters]] :: &lt;link&gt;
+
[[Containers_and_virtual_machines|Containers]] :: [[RTOS|RTOS Notes]] :: [[Compute_clusters|Clusters]] :: [[Unix_and_Linux_config|Unix and Linux config]]
 
</center>
 
</center>
 
+
-->
  
 
== [[#top|^]] Container Software ==
 
== [[#top|^]] Container Software ==
  
A general note following about three days' Docker container experimentation, and to question "should I be using a Docker container interactively, running multiple apps, some simultaneously?":
+
A promising starting point, collection of six articles / tutorials on Docker containers:
 
 
  *  https://news.ycombinator.com/item?id=7950326
 
  
 +
(1) https://medium.com/sysf/docker/home
  
Notes on Docker containerizing software.  Note, to get a practical start it is a good and or needed step to create a user account with Docker dot com.  Single user and free accounts with some advanced Docker features disabled are availableA good starting tutorial for beginners is written by one Brian Hogan of Digital Ocean, this article published 2018 July 5.  First reference in list here:
+
A general note following about three days' Docker container experimentation, and to question "should I be using a Docker container interactively, running multiple apps, some simultaneously?".  <i>(Note the following forum post chain is a quagmire of issues and opinions!)</i>:
<ul>
 
*  https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04
 
*  https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes  Remove Docker image
 
</ul>
 
Ted noting too there may be a daily limit to the number of docker images which a user with a free account can push to Docker's image repository.  Docker's image repository provides URLs of the form <code>https://hub.docker.com/u/&lt;user_name&gt;</code>, where username is the given person's Docker account user name.
 
  
Start a docker image with access to a particular host directory:
+
(2) https://news.ycombinator.com/item?id=7950326
  
*  https://stackoverflow.com/questions/55104551/how-to-access-files-in-host-from-a-docker-container
+
== [[#top|^]] Docker ==
More on Docker volumes:
 
*  https://docs.docker.com/storage/volumes/
 
  
Secure shell into, or otherwise connect with a running Docker container in and of a Linux environment:
+
Notes on Docker containerizing software.  Note, to get a practical start it is a good and or needed step to create a user account with Docker dot comSingle user and free accounts with some advanced Docker features disabled are availableA good starting tutorial for beginners is written by one Brian Hogan of Digital Ocean, this article published 2018 July 5First reference in list here:
*  https://stackoverflow.com/questions/30172605/how-do-i-get-into-a-docker-containers-shell
 
 
 
* https://docs.docker.com/samples/running_ssh_service/
 
 
 
* https://github.com/linuxserver/docker-openssh-server
 
* https://github.com/linuxserver/docker-openssh-server/blob/71d16e9d09cf8b319ccec9bde2e64ed9298a6d95/LICENSE
 
 
 
<!-- comment -->
 
 
 
== [[#top|^]] Kubernetes Container Software ==
 
  
Kubernetes notes <i>2021-06-09 This section a stub section.</i>
 
 
<ul>
 
<ul>
*  https://kubernetes.io/docs/concepts/overview/what-is-kubernetes/
+
[https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04 Docker on Ubuntu 18.04 LTS]
 +
*  [https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04 Docker on Ubuntu 20.04 LTS]
 +
*  https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes  Remove Docker image
 +
2023-06-07:
 +
*  [https://collabnix.com/how-to-fix-cannot-connect-to-the-docker-daemon-at-unix-var-run-docker-sock-error-message/ Docker cannot connect, blog by Ajeet Raina]
 
</ul>
 
</ul>
  
<!-- comment -->
+
<center>
 
+
- - - [[#top|top of page]] - - -
== [[#top|^]] Oracle Corporation VirtualBox software ==
+
</center>
 
 
VirtualBox on-line manual
 
<ul>
 
*  https://www.virtualbox.org/manual/ch01.html#virt-why-useful
 
Some important VM terms include,
 
<ul>
 
*  host OS  . . . the OS on which VirtualBox software runs
 
*  guest OS  . . . the OS which runs inside a VirtualBox VM instance
 
*  virtual machine  . . . the hosting environment which VirtualBox creates for given guest OS
 
</ul>
 
 
 
To set up shared folders in VirtualBox instances, see VirtualBox documentation chapter 4 at the first following URL.  There are also some needed steps detailed in same Oracle documentation, chapter 2, second URL here:
 
*  https://www.virtualbox.org/manual/ch04.html
 
*  https://www.virtualbox.org/manual/ch02.html#externalkernelmodules
 
 
 
Following screen capture is from Ted's work setting up virtual Ubuntu host.
 
 
 
<i>Figure 1 - capture of VM Ubuntu guest OS command prompt, with steps to mount VirtualBox CDROM drive:</i>
 
 
 
[[File:executing-VBoxLinuxAdditions-dot-run.PNG]]
 
 
 
Interestingly, mounting the device /dev/sr0 within the guest OS provides access to several files which we did not see or explicitly install when installing VirtualBox framework software.  Scripts to set up needed Linux kernel modules are among these files at <code>/media/cdrom</code>.
 
 
 
To configure port forwarding, for ssh from host OS to guest OS:
 
*  https://nsrc.org/workshops/2014/btnog/raw-attachment/wiki/Track2Agenda/ex-virtualbox-portforward-ssh.htm
 
 
 
Where VirtualBox stores its files . . .
 
*  https://docs.oracle.com/en/virtualization/virtualbox/6.0/admin/vboxconfigdata.html
 
 
 
<!-- comment -->
 
 
 
== [[#top|^]] References ==
 
 
 
*  https://www.virtualbox.org/wiki/Downloads
 
 
 
For Ubuntu installs be sure to make /boot large enough, e.g. ~500MB when creating a separate /boot partition:
 
*  https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1876562
 
 
 
<!-- comment -->
 

Latest revision as of 14:50, 26 January 2026


^ Container Software

A promising starting point, collection of six articles / tutorials on Docker containers:

(1) https://medium.com/sysf/docker/home

A general note following about three days' Docker container experimentation, and to question "should I be using a Docker container interactively, running multiple apps, some simultaneously?". (Note the following forum post chain is a quagmire of issues and opinions!):

(2) https://news.ycombinator.com/item?id=7950326

^ Docker

Notes on Docker containerizing software. Note, to get a practical start it is a good and or needed step to create a user account with Docker dot com. Single user and free accounts with some advanced Docker features disabled are available. A good starting tutorial for beginners is written by one Brian Hogan of Digital Ocean, this article published 2018 July 5. First reference in list here:

- - - top of page - - -