【笔记】基于Docker在MacBook安装Informix Developer Edition

简介: 序言Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的 Linux 机器上,也可以实现虚拟化。

序言

Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的容器中,然后发布到任何流行的 Linux 机器上,也可以实现虚拟化。容器是完全使用沙箱机制,相互之间不会有任何接口。
Informix是世界顶级商用数据库之一,能在MacBook上低成本的学习,则能帮助开发者对于数据库有更多的理解和认识。
本文介绍基于Docker,如何在MacBook上快速搭建体验环境。

一、环境准备

1.1下载Mac版Docker

https://store.docker.com/editions/community/docker-ce-server-centos

1.2安装运行Mac版Docker

  1. 双击Docker.dmg 启动安装程序,拖拽至Application文件夹中。
    img_3604e7d3d01f34a25bcd7500d8ccd22a.png
  2. 双击应用文件夹中Docker.app ,启动Docker. 看到下面的图标表示启动完毕。
    img_30bcc3991f600cca12929560ada66986.png

    3、验证安装后的版本
$ docker --version
Docker version 18.03, build c97c6d6
$ docker-compose --version
docker-compose version 1.21.2, build 8dd22a9
$ docker-machine --version
docker-machine version 0.14.0, build 9ba6da9

4、运行样例

$docker run hello-world

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/engine/userguide/

至此Docker安装完毕。

二、查找所需的Image

Docker提供了和苹果、安卓类似的应用商店。https://store.docker.com/
我此次选择的是开发者版,限制如下:
https://www.ibm.com/developerworks/data/library/techarticle/dm-0801doe/index.html
For application development and testing only, this edition packs the full suite of Informix functionality into an attractive price point: free!
The Developer Edition includes all the functionality available in the Informix Enterprise Edition with scalability constraints including processing, memory, storage, and connection limitations .
It is available on a wide range of operating systems in 32- and 64-bit versions where appropriate. Customers can upgrade from the Developer Edition directly to any other edition simply by installing the new database binaries.
Since the intent of the Informix Developer Edition is for system development and test only, it cannot be used in a production environment, and there is no optional support package.

三、基于Docker下载Informix镜像

输入以下命令则启动安装,过程中需要输入密码授权安装程序。

docker pull ibmcom/informix-developer-database
img_e924da5d9d5e01f8e1bbe2bc461c474d.jpe
启动下载
img_95605beb61ba061f5b4872a1d2872d85.jpe
下载完毕并自动安装

四、初次启动Informix

输入以下命令:

docker run -it --name iif_developer_edition --privileged -p 9088:9088 -p 9089:9089 -p 27017:27017 -p 27018:27018 \
-p 27883:27883 -e LICENSE=accept ibmcom/informix-developer-database:latest

运行效果如下图:


img_4ba48d77863ae6668eeb1a65116b8e85.jpe
初次启动

五、查看Informix情况

Informix安装在/opt/IBM/informix,Informix 数据库服务器默认名称为dev,使用onstat了解基本情况。


img_2252ae7d0e126c7987b308bf2c46ef53.jpe
查看运行效果
目录
相关文章
|
18天前
|
NoSQL 关系型数据库 Redis
mall在linux环境下的部署(基于Docker容器),Docker安装mysql、redis、nginx、rabbitmq、elasticsearch、logstash、kibana、mongo
mall在linux环境下的部署(基于Docker容器),docker安装mysql、redis、nginx、rabbitmq、elasticsearch、logstash、kibana、mongodb、minio详细教程,拉取镜像、运行容器
mall在linux环境下的部署(基于Docker容器),Docker安装mysql、redis、nginx、rabbitmq、elasticsearch、logstash、kibana、mongo
|
18天前
|
Ubuntu Linux Docker
Ubuntu 18.04 安装Docker实战案例
关于如何在Ubuntu 18.04系统上安装Docker的实战案例,包括安装步骤、配置镜像加速以及下载和运行Docker镜像的过程。
105 3
Ubuntu 18.04 安装Docker实战案例
|
18天前
|
存储 Linux Docker
CentOS 7.6安装Docker实战案例及存储引擎和服务进程简介
关于如何在CentOS 7.6上安装Docker、介绍Docker存储引擎以及服务进程关系的实战案例。
64 3
CentOS 7.6安装Docker实战案例及存储引擎和服务进程简介
|
5天前
|
Prometheus 监控 Cloud Native
docker安装prometheus+Granfan并监控容器
【9月更文挑战第14天】本文介绍了在Docker中安装Prometheus与Grafana并监控容器的步骤,包括创建配置文件、运行Prometheus与Grafana容器,以及在Grafana中配置数据源和创建监控仪表盘,展示了如何通过Prometheus抓取数据并利用Grafana展示容器的CPU使用率等关键指标。
|
23天前
|
Ubuntu Docker 索引
2024年最新版 Ubuntu 20+ 上安装 Docker
这篇文章提供了在Ubuntu 20+版本上安装Docker的详细步骤,包括更新软件包索引、安装依赖包、添加Docker官方GPG密钥、设置Docker稳定版仓库、安装Docker CE以及验证安装是否成功,并指导如何将用户添加到docker组以非root用户身份运行Docker。
|
26天前
|
存储 搜索推荐 应用服务中间件
深入探索Docker 安装 Tomcat
【8月更文挑战第26天】
38 4
|
25天前
|
NoSQL Redis 数据安全/隐私保护
深入探索利用Docker安装Redis
【8月更文挑战第27天】
65 2
|
29天前
|
数据安全/隐私保护 iOS开发 Docker
深度了解MacOS Docker 安装
【8月更文挑战第23天】深度了解MacOS Docker 安装
32 1
|
19天前
|
Docker 容器
Docker安装Gitlab和Gitlab-Runner并实现项目CICD
Docker安装Gitlab和Gitlab-Runner并实现项目CICD
|
23天前
|
jenkins Java 持续交付
jenkins学习笔记之十九:Docker安装jenkins master及动、静态配置slave
jenkins学习笔记之十九:Docker安装jenkins master及动、静态配置slave