AKAI TSUKI

System development or Technical something

Docker

Install docker using ansible.

I create playbook file "docker_install.yml" to install docker-ce. --- - name: Install Docker hosts: grp_node tasks: - name: Install package needed for docker-ce yum: name: '{{ item }}' state: installed with_items: - "yum-utils" - "device-m…

I have to study Container.

How Container Runtimes matter in Kubernetes? https://schd.ws/hosted_files/ossalsjp18/95/OSSJP_KubernetesRuntimes.pdf

When we study java and spring boot and docker.

When we study java and spring boot and docker, please check. https://blog.docker.com/2018/03/video-series-modernizing-java-apps-developers-part-1/ https://blog.docker.com/2018/03/video-series-modernizing-java-apps-developers-part-2/ https:…

I would like to know Harbor.

Information Link about Harbor github.com Harbor™ by VMware®

announced Grafeas

GrafeasをGoogleやIBMなど8社が共同開発 jp.techcrunch.com github.com

install Docker version 17.09.0-ce

# yum install -y yum-utils \ > device-mapper-persistent-data \ > lvm2 *snip* Installed: yum-utils.noarch 0:1.1.31-42.el7 Dependency Installed: libxml2-python.x86_64 0:2.9.1-6.el7_2.3 python-chardet.noarch 0:2.2.1-1.el7_1 python-kitchen.noa…

start gitlab-ce by docker

ref docs.gitlab.com Command docker run --detach \ --hostname gitlab.example.com \ --publish 443:443 --publish 80:80 --publish 1022:22 \ --name gitlab \ --restart always \ --volume /srv/gitlab/config:/etc/gitlab \ --volume /srv/gitlab/logs:…

What's rendertron?

please check github.com

Try to prepare host for installation of OpenShift.

ref: https://docs.openshift.org/latest/install_config/install/host_preparation.html Host list Host Role opshift01 master/node(infra) opshift02 node(west) opshift03 node(east) Stop firewalld at all node [root@opshift01 ~]# systemctl stop fi…

Install docker-compose 1.14.0 on CentOS 7.3

install $ sudo curl -L https://github.com/docker/compose/releases/download/1.14.0/docker-compose-`uname -s`-`uname -m` > ./docker-compose % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 1…

Upgrade Docker from 1.13.0 to 1.13.1 on CentOS 7

Command List $ docker version $ yum makecache fast $ sudo yum -y upgrade docker-engine $ docker version Detail upgrade docker [vagrant@localhost ~]$ docker version Client: Version: 1.13.0 API version: 1.25 Go version: go1.7.3 Git commit: 4…

commit container and re-run on docker.

After I commited container to image, I run container by saved image again and add option to publish the container’s port(8888). Command list stop container $ docker ps $ docker container stop work $ docker ps commit container to image $ do…

Install iproute in docker container (centos7).

I did not use ip/ss commands in default centos7 container. So, I install iproute package to container. Command list install iproute # yum install iproute Detail [root@519dd98187dd /]# yum install iproute Loaded plugins: fastestmirror, ovl …

install docker-compose 1.10.1 on CentOS 7

install I failed to get docker-compose as follows: [vagrant@localhost ~]$ sudo curl -L https://github.com/docker/compose/releases/download/1.10.1/dock er-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose -bash: /usr/local/bin/d…

install docker 1.13 on CentOS 7

I try to install docker 1.13 on CentOS 7. (Reference) https://docs.docker.com/engine/installation/linux/centos/ add repo to yum install hello world setting add repo to yum [vagrant@localhost ~]$ sudo yum install -y yum-utils Loaded plugins…

Use docker container for ssh test.

https://hub.docker.com/r/jdeathe/centos-ssh/ [root@localhost ~]# docker run -d \ > --name ssh.pool-1.1.1 \ > -p 2020:22 \ > jdeathe/centos-ssh:centos-7 Unable to find image 'jdeathe/centos-ssh:centos-7' locally centos-7: Pulling from jdeat…

start postgres

try to start postgres by docker. [root@localhost ~]# docker pull postgres Using default tag: latest latest: Pulling from library/postgres 75a822cd7888: Pull complete 68f8c57d4ec8: Pull complete 1ee19503c02a: Pull complete ea8f451ca276: Pul…

docker run with '-d' option

[root@localhost ~]# docker run -d --name ansible centos:7 tail -f /dev/null 97f8213ed1883270d11067a24bc6f718e77c5918005d58206d6b569fc02e8e58 [root@localhost ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 97f8213ed188 c…

docker pull image

[root@localhost ~]# docker pull centos Using default tag: latest latest: Pulling from library/centos 45a2e645736c: Pull complete Digest: sha256:c577af3197aacedf79c5a204cd7f493c8e07ffbce7f88f7600bf19c688c38799 Status: Downloaded newer image…

start docker (version 1.12.5)

[root@localhost ~]# systemctl enable docker.service Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service. [root@localhost ~]# systemctl start docker [root@localhost ~]# d…

install docker in CentOS 7

[root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core) [root@localhost ~]# getenforce Enforcing [root@localhost ~]# [root@localhost ~]# yum install docker-engine Loaded plugins: fastestmirror Loading mirror speeds…

docker service create option(endopoint-mode/publish)

option pattern --endpoint-mode -p(--publish) --network Network ip vip -p 80:80 (none) ingress,docker_gwbridge ingress->全ノードでコンテナ固有のIPdocker_gwbridge->各ノード毎に、コンテナ固有のIP vip (none) (none) bridge 各ノード毎に、コンテ…

service create option "--endpoint-mode dnsrr" with overlay network

docker network [root@docker01 ~]# docker network create --driver overlay overlay1 docker service create [root@docker01 ~]# docker service create --endpoint-mode dnsrr --name test --network overlay1 --replicas 1 nginx [root@docker01 ~]# doc…

use docker inspect command

"docker inspect -f" docker inpsect コマンドのフォーマット指定について確認してみました。 途中省略していますが、以下のように表示されます。 # docker inspect af8068 [ { "Id": "af80684d6eee152466c11f595b930e70bc523c8404126d034742cd00e677b469", …

docker network inspect

formatの指定(例) IPを確認するのにフォーマットオプションを指定してみた。 # docker network inspect -f '{{range .Containers}}{{print .Name}}{{print " "}}{{println .IPv4Address}}{{end}}' ingress demo.4.1wiax61a7q6m933jqgi9wsraj 10.255.0.8/16…

service create option "--endpoint-mode dnsrr" with bridge network

docker service create [root@docker01 ~]# docker service create --endpoint-mode dnsrr --name demo --replicas 1 nginx [root@docker01 ~]# docker service scale demo=3 [root@docker01 ~]# docker service create --endpoint-mode dnsrr --name client…

service create option "--endpoint-mode dnsrr" and Publish a container's port

docker service create エラーになりました。 --endpoint-mode dnsrrを指定し、さらに外からのアクセス用のポートを指定することはできないようです。 [root@docker01 ~]# docker service create --endpoint-mode dnsrr --name demo-dnsrr --replicas 4 -p 8…

service create option "--endpoint-mode vip"

--endpoint-mode vip を指定しています。 外部からnginxにアクセスするために80番ポートを指定します。 service create [root@docker01 ~]# docker service create --endpoint-mode vip --name demo-vip --replicas 1 -p 80:80 nginx bnbd8ngo3nf8yh6777gt7w…

Use data volume container in Docker

データコンテナを起動。 # docker create -v /data --name data-container busybox 作成したコンテナのボリュームにテキストファイルを配置。 [root@docker01 ~]# docker run -it --volumes-from data-container centos bash [root@84a6154b093f /]# echo "t…

When I create Volume in Docker, I supply a name.

最初の状態 [root@docker01 ~]# docker volume ls DRIVER VOLUME NAME [root@docker01 ~] ボリュームに名前を指定して、コンテナを起動 [root@docker01 ~]# docker run -it --rm -v testvol:/data1 -v /data2 centos bash [root@7a90d1063265 /] ボリューム…