CoreOS에서 MariaDB 10.3 실행
Vagrant로 CoreOS 시작
Vagrant를 사용하여 VMware Workstation Pro에서 CoreOS를 시작하고 SSH를 통해 CoreOS 가상 시스템에 연결합니다.
git clone https://github.com/coreos/coreos-vagrant.git
cd coreos-vagrant
vagrant up
vagrant ssh
 MariaDB Server 이미지 pull
2018년 10월부터 MariaDB Corporation이 빌드하고 있다.
또한 이전에는 빌드 된 이미지가 없었던 ColumnStore, MaxScale도 있습니다.
최신판 이미지를 pull 합니다.
docker pull mariadb/server
다음 명령으로 이미지 목록을 확인할 수 있습니다.
core@localhost ~ $ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
mariadb/server      latest              fc2d096c4ed9        11 days ago         371MB
 컨테이너 실행
docker run에서 mariadb라는 이름을 지정하고 포트 3306(MariaDB)을 열어 컨테이너를 실행합니다.
core@localhost ~ $ docker run --detach --env MYSQL_ROOT_PASSWORD=mypass --publish 3306:3306 --name mariadb mariadb/server
ed96366d055929ac109b2ed6f703aa94d7e644cad6b4ca4fa51d1f3b24e49328
docker ps로 시작한 컨테이너를 확인합니다. 포트 3306이 CoreOS의 포트 3306으로 리디렉션되었습니다.
core@localhost ~ $ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
ed96366d0559        mariadb/server      "docker-entrypoint.s・   21 seconds ago      Up 19 seconds       0.0.0.0:3306->3306/tcp   mariadb
 CoreOS에서 MariaDB로 연결
core@localhost ~ $ docker exec -it mariadb mysql -pmypass
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 8
Server version: 10.3.11-MariaDB-1:10.3.11+maria~bionic mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
 컨테이너 외부에서 MariaDB에 연결
Windows에서 HeidiSQL로 MariaDB에 연결해보십시오.
 공식 이미지
성공적으로 컨테이너 외부에서 연결할 수있었습니다.
 
또한 다음 명령으로 bash를 사용할 수 있습니다.
docker exec -it mariadb bash
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(CoreOS에서 MariaDB 10.3 실행), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/cherubim1111/items/e8733cb2049ffd669146
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                 우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
git clone https://github.com/coreos/coreos-vagrant.git
cd coreos-vagrant
vagrant up
vagrant ssh
2018년 10월부터 MariaDB Corporation이 빌드하고 있다.
또한 이전에는 빌드 된 이미지가 없었던 ColumnStore, MaxScale도 있습니다.
최신판 이미지를 pull 합니다.
docker pull mariadb/server
다음 명령으로 이미지 목록을 확인할 수 있습니다.
core@localhost ~ $ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
mariadb/server      latest              fc2d096c4ed9        11 days ago         371MB
컨테이너 실행
docker run에서 mariadb라는 이름을 지정하고 포트 3306(MariaDB)을 열어 컨테이너를 실행합니다.
core@localhost ~ $ docker run --detach --env MYSQL_ROOT_PASSWORD=mypass --publish 3306:3306 --name mariadb mariadb/server
ed96366d055929ac109b2ed6f703aa94d7e644cad6b4ca4fa51d1f3b24e49328
docker ps로 시작한 컨테이너를 확인합니다. 포트 3306이 CoreOS의 포트 3306으로 리디렉션되었습니다.
core@localhost ~ $ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
ed96366d0559        mariadb/server      "docker-entrypoint.s・   21 seconds ago      Up 19 seconds       0.0.0.0:3306->3306/tcp   mariadb
 CoreOS에서 MariaDB로 연결
core@localhost ~ $ docker exec -it mariadb mysql -pmypass
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 8
Server version: 10.3.11-MariaDB-1:10.3.11+maria~bionic mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
 컨테이너 외부에서 MariaDB에 연결
Windows에서 HeidiSQL로 MariaDB에 연결해보십시오.
 공식 이미지
성공적으로 컨테이너 외부에서 연결할 수있었습니다.
 
또한 다음 명령으로 bash를 사용할 수 있습니다.
docker exec -it mariadb bash
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(CoreOS에서 MariaDB 10.3 실행), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/cherubim1111/items/e8733cb2049ffd669146
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                 우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
core@localhost ~ $ docker run --detach --env MYSQL_ROOT_PASSWORD=mypass --publish 3306:3306 --name mariadb mariadb/server
ed96366d055929ac109b2ed6f703aa94d7e644cad6b4ca4fa51d1f3b24e49328
core@localhost ~ $ docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
ed96366d0559        mariadb/server      "docker-entrypoint.s・   21 seconds ago      Up 19 seconds       0.0.0.0:3306->3306/tcp   mariadb
core@localhost ~ $ docker exec -it mariadb mysql -pmypass
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 8
Server version: 10.3.11-MariaDB-1:10.3.11+maria~bionic mariadb.org binary distribution
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
컨테이너 외부에서 MariaDB에 연결
Windows에서 HeidiSQL로 MariaDB에 연결해보십시오.
 공식 이미지
성공적으로 컨테이너 외부에서 연결할 수있었습니다.
 
또한 다음 명령으로 bash를 사용할 수 있습니다.
docker exec -it mariadb bash
                
                    
        
    
    
    
    
    
                
                
                
                
                    
                        
                            
                            
                            Reference
                            
                            이 문제에 관하여(CoreOS에서 MariaDB 10.3 실행), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
                                
                                https://qiita.com/cherubim1111/items/e8733cb2049ffd669146
                            
                            
                            
                                텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                            
                            
                                
                                
                                 우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)
                            
                            
                        
                    
                
                
                
            
docker exec -it mariadb bash
Reference
이 문제에 관하여(CoreOS에서 MariaDB 10.3 실행), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/cherubim1111/items/e8733cb2049ffd669146텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)