일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- Git
- docker-compose
- linux
- controller
- Wordpress
- php
- Selenium
- props
- Python
- ruby
- NGINX
- centOS7
- pagination
- cron
- Ruby On Rails
- laravel
- imagemagick
- react
- ubuntu
- codeigniter4
- javascript
- AWS
- SQL
- vue
- ec2
- working directory
- MySQL
- dockerfile
- docker
- staging area
- Today
- Total
목록docker (11)
내가 한 노력들
저번에 만든 wordpress 환경에 network 적용과, MySQL에는 볼륨옵션을 추가해볼려고 합니다. 기존의 컨테이너 정지 / 삭제 docker stop mysql docker rm mysql docker stop wordpress docker rm wordpress 우선 컨테이너를 삭제하기 위해서는 정지된 상태여야 하기 때문에, 컨테이너를 중지 시킨 뒤 삭제해줍니다. network 생성 network를 생성하게 되면, 컨테이너를 그룹처럼 관리할 수 있게됩니다. 그러면, wordpress 컨테이너를 생성할 경우에 -e WORDPRESS_DB_HOST=host.docker.internal로 설정해주었던 것도 -e WORDPRESS_DB_HOST=mysql 이런식으로 설정이 가능해집니다. docker ..
로그인 docker login https://hub.docker.com/ Docker Hub Container Image Library | App Containerization Build and Ship any Application Anywhere Docker Hub is the world's easiest way to create, manage, and deliver your teams' container applications. hub.docker.com 회원가입은 위의 docker hub에서 할 수 있습니다. 이미지 push docker push {id}/image 이미지 검색 docker search {image} 전에 만들어둔 nginx 이미지를 docker hub에 저장되어서, 검색이 되는 것..
MySQL 컨테이너 생성 우선 WordPress에 필요한 DB가 필요합니다. docker -d -p 3306:3306 \ -e MYSQL_ALLOW_EMPTY_PASSWORD=true \ --name mysql mysql:5.7 -d : 백그라운드 -p : 포트설정 -e : 환경설정 --name : 컨테이너 이름 mysql:5.7 : mysql 5.7버전 ( image이름) MYSQL_ALLOW_EMPTY_PASSWORD=true : MySQL 실행할시에 Password 입력 생략 위의 명령어를 실행시키면, 위와같은 화면이 뜹니다. image가 존재하지 않을 경우에는 image부터 설치합니다. MySQL 실행 docker exec -it mysql mysql exec : start중인 컨테이너 실행 -i..