라벨이 docker인 게시물 표시

install superset

이미지
## prepare  [root@superset ~]# git clone https://github.com/apache/superset.git Cloning into 'superset'... remote: Enumerating objects: 121678, done. remote: Total 121678 (delta 0), reused 0 (delta 0), pack-reused 121678 Receiving objects: 100% (121678/121678), 269.37 MiB | 12.34 MiB/s, done. Resolving deltas: 100% (88857/88857), done. [root@superset ~]# ## execute [root@superset superset]# docker-compose -f docker-compose-non-dev.yml up [+] Running 0/43 ⠙ superset-init Pulling 5.2s ⠹ bb7d5a84853b Downloading [====================> ] 23.06MB/54.92MB 1.2s ⠙ db Pulling 5.2s ⠙ eec53b8a5053 Waiting 0.2s [+] Running 0/491

docker install on centos 7

## remove docker [root@superset ~]# yum remove docker \ > docker-client \ > docker-client-latest \ > docker-common \ > docker-latest \ > docker-latest-logrotate \ > docker-logrotate \ > docker-engine Loaded plugins: fastestmirror, langpacks No Match for argument: docker No Match for argument: docker-client No Match for argument: docker-client-latest No Match for argument: docker-common No Match for argument: docker-latest No Match for argument: docker-latest-logrotate No Match for argument: docker-logrotate No Match for argument: docker-engine No Packages marked for removal [root@superset ~]# ## prepare [root@superset ~]# yum install -y yum-utils Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.kakao.com * extras: mirror.kakao.com * updates: mirror.kakao.com Resolving Dependencies --> R

install gitlab with docker

install gitlab with docker #Run the image docker run --detach --hostname gitdocker.gnoti.com --publish 8897:80 --publish 6015:22 --name gitlab --restart always --volume /srv/gitlab/config:/home/min/GitLab --volume /srv/gitlab/logs:/home/min/GitLab/log --volume /srv/gitlab/data:/home/min/GitLab/data gitlab/gitlab-ce:latest [root@gitlabd ~]# docker run --detach --hostname git.gnoti.com --publish 8897:80 --publish 6015:22 --name gitlab --restart always --volume /srv/gitlab/config:/home/min/GitLab --volume /srv/gitlab/logs:/home/min/GitLab/log --volume /srv/gitlab/data:/home/min/GitLab/data gitlab/gitlab-ce:latest Unable to find image 'gitlab/gitlab-ce:latest' locally latest: Pulling from gitlab/gitlab-ce 0a01a72a686c: Pull complete cc899a5544da: Pull complete 19197c550755: Pull complete 716d454e56b6: Pull complete b66ad69c1d8e: Pull complete 462500695a87: Pull complete 453c7300278b: Pull complete d7a5a55d56da: Pull complete 8e0cebb8d658: Pull complete 0b6cca773e2f: Pull c

docker import export with oracle 9

  ## import oracle docker  root@gnoti04-dreamsys:~# docker import --change 'CMD ["/entrypoint.sh"]' /home/gnoti04/db.tar oracle sha256:a058aeb177da995d0a2b2c386390ae2ea891fb0e492c8c064dd30be8ed04434b root@gnoti04-dreamsys:~# docker run -d -p 49161:1521 oracle 18e5f71c47e32cd0b388a288d1e3406580d24d8480706c336aead6cd7d37ae9f root@gnoti04-dreamsys:~# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 18e5f71c47e3 oracle "/entrypoint.sh" 4 seconds ago Up 3 seconds 0.0.0.0:49161->1521/tcp vigilant_swanson bc60a61e3088 gitlab/gitlab-ce:12.2.7-ce.0 "/assets/wrapper" 3 minutes ago Exited (0) 2 seconds ago gitlab root@gnoti04-dreamsys:~# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS

oracle 19c on docker

  ## get docker images https://www.oracle.com/database/technologies/oracle-database-software-downloads.html#license-lightbox ## git clone oracle docker [root@localhost ~]# git clone https://github.com/oracle/docker-images Cloning into 'docker-images'... remote: Enumerating objects: 12757, done. remote: Total 12757 (delta 0), reused 0 (delta 0), pack-reused 12757 Receiving objects: 100% (12757/12757), 9.53 MiB | 3.93 MiB/s, done. Resolving deltas: 100% (7520/7520), done. [root@localhost ~]# ll 합계 12 -rw-------. 1 root root 1696 5월 12 09:45 anaconda-ks.cfg drwxr-xr-x. 23 root root 4096 10월 15 22:08 docker-images -rw-r--r--. 1 root root 1744 5월 21 12:06 initial-setup-ks.cfg [root@localhost ~]# cd docker-images/ [root@localhost docker-images]# ll 합계 24 drwxr-xr-x. 6 root root 110 10월 15 22:08 Archive -rw-r--r--. 1 root root 760 10월 15 22:08 CODEOWNERS -rw-r--r--. 1 root root 9371 10월 15 22:08 CONTRIBUTING.md drwxr-xr-x. 3 root root 53 10월 15 22:08 Contrib drwxr-xr-x. 3

deploy docker image on kubernetes

#apply patch [root@k8s-master ~]# cat Dockerfile FROM openjdk:8-jdk MAINTAINER gnoti VOLUME /tmp ARG JAR_FILE=test.springboot.netty-0.0.1-SNAPSHOT.jar COPY ${JAR_FILE} app.jar ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"] EXPOSE 8088[root@k8s-master ~]# [root@k8s-master ~]# docker build -t gnotiboot . Sending build context to Docker daemon 157MB Step 1/7 : FROM openjdk:8-jdk ---> 3e50df58f25e Step 2/7 : MAINTAINER gnoti ---> Running in e3a88d96f015 Removing intermediate container e3a88d96f015 ---> 5cfc31ae7709 Step 3/7 : VOLUME /tmp ---> Running in 7c87f897218c Removing intermediate container 7c87f897218c ---> 002b046cc33b Step 4/7 : ARG JAR_FILE=test.springboot.netty-0.0.1-SNAPSHOT.jar ---> Running in 805698ab8292 Removing intermediate container 805698ab8292 ---> 539b5c4b2e87 Step 5/7 : COPY ${JAR_FILE} app.jar ---> ea2812dc02e7 Step 6/7 : ENTRYPOINT ["java","

sync dbms using logstash

#set logstash [root@elk74 ~]# cd /etc/logstash/ [root@elk74 logstash]# ll 합계 44 drwxrwxr-x. 2 root root 6 3월 26 17:55 conf.d -rw-r--r--. 1 root root 2019 3월 26 17:55 jvm.options -rw-r--r--. 1 root root 8880 3월 26 17:55 log4j2.properties -rw-r--r--. 1 root root 959 5월 8 11:09 logs.yml -rw-r--r--. 1 root root 342 3월 26 17:55 logstash-sample.conf -rw-r--r--. 1 root root 8866 5월 8 08:58 logstash.yml -rw-r--r--. 1 root root 285 3월 26 17:55 pipelines.yml -rw-------. 1 root root 1696 3월 26 17:55 startup.options [root@elk74 logstash]# vi logs.yml input { jdbc { jdbc_driver_library => "/root/mysql-connector-java-8.0.16.jar" jdbc_driver_class => "com.mysql.jdbc.Driver" jdbc_connection_string => "jdbc:mysql://192.168.0.158:3306/es_db" jdbc_user => root jdbc_password => mypass123 jdbc_paging_enabled => true tracking_column => "unix_ts_in_secs" use_column_value => true tracking

Run MySQL & phpMyAdmin using Docker

#pull mysql [root@localhost ~]# docker pull mysql:8.0.1 Trying to pull repository docker.io/library/mysql ... 8.0.1: Pulling from docker.io/library/mysql 9f0706ba7422: Pull complete 2290e155d2d0: Pull complete 547981b8269f: Pull complete 2c9d42ed2f48: Pull complete 55e3122f1297: Pull complete abc10bd84060: Pull complete 944b75db8d03: Pull complete f487620dc272: Pull complete c3634e34a659: Pull complete 64579c8234d0: Pull complete d1969b07cc6e: Pull complete Digest: sha256:afd6d4d8182d7541f64ce2e5b7407a1c79996b1142bf9405e9d1d82922e42a31 Status: Downloaded newer image for docker.io/mysql:8.0.1 #start mysql [root@localhost ~]# docker run --name my-own-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=mypass123 -d mysql:8.0.1 fd26d8eaa083c6242d2d85060c46d61f1f8d8d79dfb634342964a9a7e71d5a16 #pull phpmyadmin [root@localhost ~]# docker pull phpmyadmin/phpmyadmin:latest Trying to pull repository docker.io/phpmyadmin/phpmyadmin ... latest: Pulling from docker.io/phpmyadmi

Docker Error starting daemon: SELinux is not supported

#error message [root@localhost ~]# systemctl start docker Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. [root@localhost ~]# systemctl status docker.service ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since 화 2020-04-28 08:53:09 KST; 12s ago Docs: http://docs.docker.com Process: 18314 ExecStart=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY

build docker image

#make dockerfile [root@k8s-master docker-tomcat-war]# ll 합계 20 -rw-r--r--. 1 root root 110 4월 7 08:46 Dockerfile -rw-r--r--. 1 root root 681 4월 7 08:39 README.md -rw-r--r--. 1 root root 96 4월 7 08:39 docker-compose.yml -rw-r--r--. 1 root root 4606 4월 7 08:39 sample.war [root@k8s-master docker-tomcat-war]# vi Dockerfile FROM tomcat MAINTAINER gnoti@gmail.com ADD sample.war /usr/local/tomcat/webapps/ CMD ["catalina.sh", "run"] #build dockerfile [root@k8s-master docker-tomcat-war]# docker build -t gnoti_tomcat . Sending build context to Docker daemon 64kB Step 1/4 : FROM tomcat latest: Pulling from library/tomcat f15005b0235f: Pull complete 41ebfd3d2fd0: Pull complete b998346ba308: Pull complete f01ec562c947: Pull complete 74c11ae3efe8: Pull complete 3a7e595a3ef5: Pull complete 208407758d73: Pull complete b5238120a381: Pull complete 1716556aae46: Pull complete 1336a11b2bd2: Pull complete Digest: sha256:c0ba286d9903006423ff4e2818845f1cc

elasticsearch on docker vm.max_map_count [65530] is too low

#show error [2020-03-27T00:51:26,356][INFO ][o.e.d.DiscoveryModule    ] [master-node1] using discovery type [zen] and host providers [settings] [2020-03-27T00:51:34,430][INFO ][o.e.n.Node               ] [master-node1] initialized [2020-03-27T00:51:34,430][INFO ][o.e.n.Node               ] [master-node1] starting ... [2020-03-27T00:51:36,061][INFO ][o.e.t.TransportService   ] [master-node1] publish_address {172.20.0.2:9300}, bound_addresses {[::]:9300} [2020-03-27T00:51:36,238][INFO ][o.e.b.BootstrapChecks    ] [master-node1] bound or publishing to a non-loopback address, enforcing bootstrap checks ERROR: [1] bootstrap checks failed [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] #fix error [root@localhost ~]# sysctl -w vm.max_map_count=262144 vm.max_map_count = 262144

install ELK on docker

install ELK on docker #install docker [root@minimacent ~]# yum install -y yum-utils device-mapper-persistent-data lvm2 #install docker [root@localhost ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo Loaded plugins: fastestmirror, langpacks adding repo from: https://download.docker.com/linux/centos/docker-ce.repo grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo repo saved to /etc/yum.repos.d/docker-ce.repo #install docker [root@localhost ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo Loaded plugins: fastestmirror, langpacks #install docker [root@minimacent ~]# yum install docker-ce docker-ce-cli containerd.io Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.kakao.com * extras: mirror.kakao.com * updates: mirror.kakao.com #install docker [root@minimacent ~]# yum i