root
계정 또는 sudo
명령어를 사용합니다.root계정
으로 사용할 예정 입니다.영구 volume
을 사용합니다docker pull apacheignite/ignite
[root@a:22 /home/karim] docker pull apacheignite/ignite
Using default tag: latest
latest: Pulling from apacheignite/ignite
e7c96db7181b: Already exists
f910a506b6cb: Already exists
b6abafe80f63: Already exists
c1dfe3f01f3d: Pull complete
44e71db117be: Pull complete
cc9e8894c330: Pull complete
d3d17f020d66: Pull complete
a3af540796f7: Pull complete
ccd409f91b93: Pull complete
7b97b149d73a: Pull complete
Digest: sha256:edf1a3bbe1f3f90c0be545852d03413bfe14462cae019f073096c5a8bf2851fa
Status: Downloaded newer image for apacheignite/ignite:latest
docker.io/apacheignite/ignite:latest
docker volume create ignite-persistence-volume
[root@a:22 /home/karim] docker volume create ignite-persistence-volume
ignite-persistence-volume
docker run -d --name ignite-single -v [create 한 volum 경로]/ignite-persistence-volume:/storage -e IGNITE_WORK_DIR=/storage -e CONFIG_URI=/storage/config-file.xml apacheignite/ignite:2.11.0
-v
볼륨 마운트-e
환경 변수IGNITE_WORK_DIR : 영구 저장소
CONFIG_URI : 기동할 때 읽을 config 설정영구 저장소 마운트 한 경로 안에 config 파일을 넣고 기동해주면 된다.
[root@a:22 /home/karim] docker run -d --name ignite-single -v [create 한 volum 경로]/ignite-persistence-volume:/storage -e IGNITE_WORK_DIR=/storage -e CONFIG_URI=/storage/config-file.xml apacheignite/ignite:2.11.0
c839661c650460127dc7d70773f3c40f0520c725db0dbcaa164b6555662c6752
docker ps | grep ignite-single
[root@a:22 /home/karim] docker ps | grep ignite-single
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
4a4768286a55 apacheignite/ignite:2.11.0 "/bin/sh -c $IGNITE_…" 7 minutes ago Up 7 minutes 8080/tcp, 10800/tcp, 11211/tcp, 47100/tcp, 47500/tcp, 49112/tcp ignite-single
[root@a:22 ~/docker_resource/volumes/ignite-persistence-volume/_data] ls
db diagnostic log
[root@a:22 ~/docker_resource/volumes/ignite-persistence-volume/_data] cd log
[root@a:22 ~/docker_resource/volumes/ignite-persistence-volume/_data/log] ls
ignite-bf466aec.0.log ignite-bf466aec.0.log.lck
[06:06:51,700][INFO][main][IgniteKernal]
>>> __________ ________________
>>> / _/ ___/ |/ / _/_ __/ __/
>>> _/ // (7 7 // / / / / _/
>>> /___/\___/_/|_/___/ /_/ /___/
>>>
>>> ver. 2.11.0#20210911-sha1:8f3f07d3
>>> 2021 Copyright(C) Apache Software Foundation
>>>
>>> Ignite documentation: http://ignite.apache.org
[06:06:51,712][INFO][main][IgniteKernal] Config URL: file:/opt/ignite/apache-ignite/config/default-config.xml
[
docker exec -it ignite-single /bin/sh
[root@a:22 /] docker exec -it ignite-single /bin/sh
/opt/ignite # ls
apache-ignite
/opt/ignite # cd apache-ignite/
/opt/ignite/apache-ignite # ls
LICENSE NOTICE RELEASE_NOTES.txt bin docs libs run.sh
MIGRATION_GUIDE.txt README.txt benchmarks config examples platforms
./bin/sqlline.sh --color=true --verbose=true -u jdbc:ignite:thin://127.0.0.1
/opt/ignite/apache-ignite # ./bin/sqlline.sh --color=true --verbose=true -u jdbc:ignite:thin://127.0.0.1
issuing: !connect "jdbc:ignite:thin://127.0.0.1"
Connecting to jdbc:ignite:thin://127.0.0.1
Enter username for jdbc:ignite:thin://127.0.0.1:
Enter password for jdbc:ignite:thin://127.0.0.1:
Connected to: Apache Ignite (version 2.11.0#20210911-sha1:8f3f07d3)
Driver: Apache Ignite Thin JDBC Driver (version 2.11.0#20210911-sha1:8f3f07d3)
Autocommit status: true
Transaction isolation: TRANSACTION_REPEATABLE_READ
sqlline version 1.9.0
0: jdbc:ignite:thin://127.0.0.1>
0: jdbc:ignite:thin://127.0.0.1> !tables
+-----------+-------------+-----------------------------+------------+---------+----------+------------+-----------+---------------------------+----------------+
| TABLE_CAT | TABLE_SCHEM | TABLE_NAME | TABLE_TYPE | REMARKS | TYPE_CAT | TYPE_SCHEM | TYPE_NAME | SELF_REFERENCING_COL_NAME | REF_GENERATION |
+-----------+-------------+-----------------------------+------------+---------+----------+------------+-----------+---------------------------+----------------+
| IGNITE | SYS | BASELINE_NODES | VIEW | | | | | | |
| IGNITE | SYS | BASELINE_NODE_ATTRIBUTES | VIEW | | | | | | |
| IGNITE | SYS | BINARY_METADATA | VIEW | | | | | | |
| IGNITE | SYS | CACHES | VIEW | | | | | | |
| IGNITE | SYS | CACHE_GROUPS | VIEW | | | | | | |
| IGNITE | SYS | CACHE_GROUP_PAGE_LISTS | VIEW | | | | | | |
| IGNITE | SYS | CLIENT_CONNECTIONS | VIEW | | | | | | |
| IGNITE | SYS | CONTINUOUS_QUERIES | VIEW | | | | | | |
| IGNITE | SYS | DATASTREAM_THREADPOOL_QUEUE | VIEW | | | | | | |
| IGNITE | SYS | DATA_REGION_PAGE_LISTS | VIEW | | | | | | |
| IGNITE | SYS | DISTRIBUTED_METASTORAGE | VIEW | | | | | | |
| IGNITE | SYS | DS_ATOMICLONGS | VIEW | | | | | | |
| IGNITE | SYS | DS_ATOMICREFERENCES | VIEW | | | | | | |
| IGNITE | SYS | DS_ATOMICSEQUENCES | VIEW | | | | | | |
| IGNITE | SYS | DS_ATOMICSTAMPED | VIEW | | | | | | |
| IGNITE | SYS | DS_COUNTDOWNLATCHES | VIEW | | | | | | |
| IGNITE | SYS | DS_QUEUES | VIEW | | | | | | |
| IGNITE | SYS | DS_REENTRANTLOCKS | VIEW | | | | | | |
| IGNITE | SYS | DS_SEMAPHORES | VIEW | | | | | | |
| IGNITE | SYS | DS_SETS | VIEW | | | | | | |
| IGNITE | SYS | INDEXES | VIEW | | | | | | |
| IGNITE | SYS | JOBS | VIEW | | | | | | |
| IGNITE | SYS | LOCAL_CACHE_GROUPS_IO | VIEW | | | | | | |
| IGNITE | SYS | METRICS | VIEW | | | | | | |
| IGNITE | SYS | NODES | VIEW | | | | | | |
| IGNITE | SYS | NODE_ATTRIBUTES | VIEW | | | | | | |
| IGNITE | SYS | NODE_METRICS | VIEW | | | | | | |
| IGNITE | SYS | PARTITION_STATES | VIEW | | | | | | |
| IGNITE | SYS | SCAN_QUERIES | VIEW | | | | | | |
| IGNITE | SYS | SCHEMAS | VIEW | | | | | | |
| IGNITE | SYS | SERVICES | VIEW | | | | | | |
| IGNITE | SYS | SQL_QUERIES | VIEW | | | | | | |
| IGNITE | SYS | SQL_QUERIES_HISTORY | VIEW | | | | | | |
| IGNITE | SYS | STRIPED_THREADPOOL_QUEUE | VIEW | | | | | | |
| IGNITE | SYS | TABLES | VIEW | | | | | | |
| IGNITE | SYS | TABLE_COLUMNS | VIEW | | | | | | |
| IGNITE | SYS | TASKS | VIEW | | | | | | |
| IGNITE | SYS | TRANSACTIONS | VIEW | | | | | | |
| IGNITE | SYS | VIEWS | VIEW | | | | | | |
| IGNITE | SYS | VIEW_COLUMNS | VIEW | | | | | | |
+-----------+-------------+-----------------------------+------------+---------+----------+------------+-----------+---------------------------+----------------+
0: jdbc:ignite:thin://127.0.0.1> !exit
Closing: org.apache.ignite.internal.jdbc.thin.JdbcThinConnection