docker
-
docker 4 (grafana)docker 2023. 10. 10. 12:58
https://grafana.com/docs/grafana/latest/setup-grafana/installation/docker/ Run Grafana Docker image | Grafana documentation Enterprise Open source Run Grafana Docker image You can use Grafana Cloud to avoid installing, maintaining, and scaling your own instance of Grafana. Create a free account to get started, which includes free forever access to 10k metrics, 50GB logs, 50GB t grafana.com https..
-
docker 3 (volume)docker 2023. 10. 6. 16:37
호스트 볼륨 컨테이너 볼륨 docker run -d -v $(pwd)/html:/usr/share/nginx/html --name web-volume ubuntu:focal - 호스트 불륨 docker run -d --name nginx1 --volumes-from web-volume -p 80:80 nginx - 컨테이너 불륨 docker run -d --name nginx2 --volumes-from web-volume -p 8080:80 nginx - 컨테이너 불륨 Nginx 웹 서버를 실행하고, 각각의 서버는 web-volume이라는 이름의 컨테이너에서 HTML 파일을 공유받아 사용합니다. 또한, 호스트의 포트 80 및 8080은 각각 첫 번째와 두 번째 Nginx 서버에 매핑되어 웹 서버에 접근..
-
docker 2docker 2023. 10. 5. 12:12
다시 한번 실행 해보기 app.py import time import redis from flask import Flask app = Flask(__name__) cache = redis.Redis(host='redis', port=6379) def get_hit_count(): retries = 5 while True: try: return cache.incr('hits') except redis.exceptions.ConnectionError as exc: if retries == 0: raise exc retries -= 1 time.sleep(0.5) @app.route('/') def hello(): count = get_hit_count() return 'Hello World! I have b..
-
dockerdocker 2023. 10. 4. 11:13
https://docs.docker.com/engine/install/ubuntu/ Install Docker Engine on Ubuntu Jumpstart your client-side server applications with Docker Engine on Ubuntu. This guide details prerequisites and multiple methods to install. docs.docker.com 기본 ip부여 docker 설치 DOCKER_USER=ubuntu -> 사용자 권한 부여 sudo apt-get update && sudo apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-re..