본문 바로가기
IT Study/Docker

Docker 오류 해결

by Irwin-Kr 2024. 3. 5.
  1. Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.
    • composer.json의 원본값 원복 및 정상 작동 확인 후 수정 진행
  2. composer에서의 'user'@'%' 오류 발생
    •  'root' 및 'user'의 권한 확인
// 실행중인 docker 확인
$ docker stats

// docker의 데이터베이스 접근
$ docker exec -it <Docker Image Id> mysql -u <사용자계정> -p

// 데이터 베이스 접근
mysql> use mysql

// 사용자 조회
mysql> select user, host from user;

// 사용자 생성
mysql> create user '<생성할 계정 명>'@'<접근 권한(% or localhost)>' identified by '<패스워드>';

// 사용자 전체 권한 부여
mysql> grant all privileges on *.* to <사용자 명>@'<접근 권한>';

 

  • docker-compose.yum 파일의 설정된 데이터베이스와 실행된 docker의 데이터베이스 확인

'IT Study > Docker' 카테고리의 다른 글

Docker 환경 설정  (0) 2024.03.03
03. Docker Compose  (0) 2024.03.01
02. 설치  (0) 2024.02.28