Docker: Difference between revisions

From ALT Linux Wiki
(Created page with "= Docker = [https://en.wikipedia.org/wiki/Docker_(software) Docker] is an open platform for developing, shipping, and running applications. == Installation == <ol> <li> To in...")
 
(→‎Official image: Add list of arches)
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
<ol>
<ol>
<li>
<li>
To install docker run:
To install docker, run:
: <code># apt-get install docker-ce</code>
: <code># apt-get install docker-ce</code>
</li>
</li>
Line 26: Line 26:
: <code>docker run --rm -it alt</code>
: <code>docker run --rm -it alt</code>


By default use tag <code>latest</code>, that points to latest stable release.
By default use tag <code>latest</code>, that points to latest stable release. It is p9 for now.


To specify sisyphus use corresponding tag:
To specify sisyphus use corresponding tag:
: <code>docker run --rm -it alt:sisyphus</code>
: <code>docker run --rm -it alt:sisyphus</code>
Official image available for the following arches:
* amd64
* arm64v8
* i386
* ppc64le


=== Derivative images ===
=== Derivative images ===
Line 38: Line 44:
* web servers <code>nginx</code> and <code>apache2</code>;
* web servers <code>nginx</code> and <code>apache2</code>;
* configuration storage <code>etcd</code>;
* configuration storage <code>etcd</code>;
* tools for running your applications: <code>python</code> и <code>ruby</code>;
* tools for running your applications: <code>python</code> and <code>ruby</code>;
* and others.
* and others.

Latest revision as of 19:36, 10 July 2019

Docker

Docker is an open platform for developing, shipping, and running applications.

Installation

  1. To install docker, run:
    # apt-get install docker-ce
  2. If you want docker to work from user (not from root) add user to group docker
    # gpasswd docker -a USER_NAME
  3. Then start and enable docker service:
    # systemctl start docker
    # systemctl enable docker

Images

Official image

Official ALT image locates at: https://hub.docker.com/_/alt/. Container could be run via:

docker run --rm -it alt

By default use tag latest, that points to latest stable release. It is p9 for now.

To specify sisyphus use corresponding tag:

docker run --rm -it alt:sisyphus

Official image available for the following arches:

  • amd64
  • arm64v8
  • i386
  • ppc64le

Derivative images

Special images are located at https://hub.docker.com/u/altcloud/. These images are built from Dockerfiles from https://github.com/alt-cloud/ALT-Dockerfiles (pull-requests are welcome).

There are images for the following purposes:

  • web servers nginx and apache2;
  • configuration storage etcd;
  • tools for running your applications: python and ruby;
  • and others.