Ubuntu

Jumpstart your client-side server applications with Docker Engine on Ubuntu. This guide details prerequisites and multiple methods to install Docker Engine on Ubuntu.

docs.docker.com

 

  • Apt repository 추가
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc

# Add the repository to Apt sources:
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

 

 

  •  설치
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

 

  • 확인
sudo docker run hello-world

 

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

 

  • 추가 정보
    • docker 설치 시 docker-compose가 같이 설치되는데 docker-compose 명령어는 /usr/libexec/docker/cli-plugins/docker-compose 라는 요상한 곳에 설치가 됨
    • 해당 path를 $PATH에 추가해도 좋겠지만...
    • 난 그냥 /usr/local/bin 에 심볼릭 링크 추가함
root@Ubuntu24:~# dpkg -L docker-compose-plugin
/.
/usr
/usr/libexec
/usr/libexec/docker
/usr/libexec/docker/cli-plugins
/usr/libexec/docker/cli-plugins/docker-compose
/usr/share
/usr/share/doc
/usr/share/doc/docker-compose-plugin
/usr/share/doc/docker-compose-plugin/changelog.Debian.gz
root@Ubuntu24:~# ls -al /usr/local/bin/
total 8
drwxr-xr-x  2 root root 4096 Nov 25 23:48 .
drwxr-xr-x 10 root root 4096 May  7  2024 ..
lrwxrwxrwx  1 root root   46 Nov 25 23:48 docker-compose -> /usr/libexec/docker/cli-plugins/docker-compose
root@Ubuntu24:~# docker-compose --help

Usage:  docker compose [OPTIONS] COMMAND

Define and run multi-container applications with Docker

Options:
      --all-resources              Include all resources, even those not used by services
      --ansi string                Control when to print ANSI control characters
                                   ("never"|"always"|"auto") (default "auto")
      --compatibility              Run compose in backward compatibility mode
      --dry-run                    Execute command in dry run mode
      --env-file stringArray       Specify an alternate environment file
  -f, --file stringArray           Compose configuration files
      --parallel int               Control max parallelism, -1 for unlimited (default -1)
      --profile stringArray        Specify a profile to enable
      --progress string            Set type of progress output (auto, tty, plain, json,
                                   quiet) (default "auto")
      --project-directory string   Specify an alternate working directory
                                   (default: the path of the, first specified, Compose file)
  -p, --project-name string        Project name

Commands:
  attach      Attach local standard input, output, and error streams to a service's running container
  build       Build or rebuild services
  config      Parse, resolve and render compose file in canonical format
  cp          Copy files/folders between a service container and the local filesystem
  create      Creates containers for a service
  down        Stop and remove containers, networks
  events      Receive real time events from containers
  exec        Execute a command in a running container
  images      List images used by the created containers
  kill        Force stop service containers
  logs        View output from containers
  ls          List running compose projects
  pause       Pause services
  port        Print the public port for a port binding
  ps          List containers
  pull        Pull service images
  push        Push service images
  restart     Restart service containers
  rm          Removes stopped service containers
  run         Run a one-off command on a service
  scale       Scale services 
  start       Start services
  stats       Display a live stream of container(s) resource usage statistics
  stop        Stop services
  top         Display the running processes
  unpause     Unpause services
  up          Create and start containers
  version     Show the Docker Compose version information
  wait        Block until containers of all (or specified) services stop.
  watch       Watch build context for service and rebuild/refresh containers when files are updated

Run 'docker compose COMMAND --help' for more information on a command.
root@Ubuntu24:~#
반응형
 

Linux Containers vs. Docker: Which One Should You Use? | Docker

Explore the key differences between Docker and LXC to determine which containerization technology best suits your project needs.

www.docker.com

  • How Docker enhances LXC
    • Although Docker started with LXC, it added significant value by layering tools and services that enhance user experience and management capabilities. Docker Desktop abstracts much of the complexity of managing containers through user-friendly interfaces and commands, making containerization accessible to a broader range of developers.
  • Download CT Template in Promox
    • 다양한 Template 이 있고 Ubuntu 24.04 LTS를 깔아 보겠음

 

  • Create CT

 

  • 완료

  • Easy...

 

반응형
  • 매직스플릿을 1주일 정도 사용해 봤다.
  • 100만원 정도 되는 적은 돈으로 잠깐 사용해 보니 스윙 종목들에 대해서는 어느 정도 효과를 볼 수 있을 것 같다.
  • 종목을 여러개로 늘려야 효과가 좋을 것으로 보이는데 일단 한달 정도는 적은 돈, 적은 종목으로 계속 테스트 해봐야 겠다.

반응형
  • 장난감 NAS의 Proxmox 에 TrueNAS를 설치해 봤음
  • Real NAS 에는XPEnology를 사용 중
    • DS918+를 오래 사용하다 Proxmox로 Home Server를 구축하고 XPEnology 설치 후 DS918+는 처분
  • https://www.truenas.com/
 

TrueNAS - Welcome to the Open Storage Era

TrueNAS is the World's #1 Open Source Storage. Based on OpenZFS, it is trusted by millions and deployed worldwide.

www.truenas.com

 

 

 

 

  • CPU core 4개, RAM 8GB, Disk는 16GB면 충분함

  • Web GUI 로 TrueNAS 서비스에 접속
  • Dashboard 가 깔끔함
  • Synology는 PC의 바탕화면 느낌이라면 TrueNAS는 ERP의 Dashboard 느낌

  • 설치 후 Storage Pool 을 만들어 줘야 함
  • Synology 사용하면서 비슷한 작업을 해봤기 때문에 특별히 메뉴얼을 확인할 필요는 없었음

  • Pool 생성 이후 Datasets 생성

  • Synology 처럼 TrueNAS도 linux 기반이기 때문에 이런 저런 패키지들 설치가 가능

  • 익숙한 패키지들이 여러가지가 존재함
  • Proxmox 로 Home Server를 구축한 내 입장에서야 이런 패키지들이 크게 유용하지 않지만 서버에 TrueNAS만 설치되어 있다면 나름 유용할 것으로 보임

  • SMB 설정 이후 Linux (Ubuntu 24.04) 에서 연결되는 것 확인
    • SMB 서비스에 접근할 수 있는 계정에 대한 생성 및 권한 설정을 미리 해줘야 함

  • 마찬가지로 Windows 11 에서도 정상적으로 접근됨

 

  • 총평
    • 깔끔한 Dashboard가 인상적
    • 개인이 무료로 사용 가능하다는 점도 매우 장점임
    • 아주 잠깐 맛만 봤지만 NAS 기능 자체는 충분한 것 같으나 부가 기능은 아직 Synology 보다 약간 부족한 느낌임
반응형
  • 10년도 더 된 4세대 i7 cpu 가 빠를까? 아니면 비교적 최신인 12세대 celeron 이 빠를까...

 

https://technical.city/en/cpu/Core-i7-4770-vs-Processor-N100

 

Processor N100 vs i7-4770

Core i7-4770 2013 4 cores / 8 threads, 84 Watt

technical.city

 

  • 썩어도 준치라고 i7-4770이 10년도 더 됐지만 n100 보다 거의 2배가 빠르다...
    • 하이퍼 쓰레딩의 유무가 큰 역할을 한 것 같으다.
반응형

https://support.hp.com/kr-ko/product/details/hp-pavilion-15-cs1000-laptop-pc/model/24514132

 

 

 

  • 2018년 빅스마일데이 때 저렴이로 구매하여 아직까지 잘 사용하고 있음
  • CPU : Intel i7-8565U (Whiskey Lake)
    • 원래 i5로 나왔어야 했는데 급 i7 으로 나온 것으로 알고 있음
  • RAM은 기본 8GB 였지만 현재는 32GB (Teamgroup)
  • 다소 특이하게 intel uhd620 내장 그래픽과 nvidia mx150 외장 그래픽을 동시에 사용할 수 있음

 

  • 그래서 이 노트북에 혹시 hackintosh를 설치할 수 있을지 찾아 보다 가능성을 발견함
    • intel 8세대 cpu 이고 igpu 역시 hd620 이여서 최신 Mac OS 까지 설치가능한 모델
  • 일단 아래 링크로 실험해 봤는데... 대 실패...

 

  • OpenCore EFI 로 Mac OS Recovery를 시도하면 아래 처럼 Kernel Panic 발생으로 더 이상 진행이 안된다.
    • 저 영상에서는 Dell 노트북을 사용한 반면 내 노트북은 HP 꺼라서 그런건지...

 

 

  • 영상처럼 Dual Boot 으로 해야 할지... 
  • 아니면 Linux Box로 사용하고 있는 2nd PC에 AMD RX570이나 RX580 을 달고 이 곳에 설치 시도해 볼지...
반응형
  • 2023년 2월에 구매 후 유튜브 시청하는데 유용하게 사용했던 3060ti를 팔아야 겠다.
  • 그냥 가지고 있을까 하다... 안 써서 똥 되느니 파는 것이 나을 듯 싶다.
  • 내가 쓴 거지만 진짜 깨끗하구나. ㅋ

 

반응형

'일상다반사' 카테고리의 다른 글

스타필드 수원 방문 후기  (5) 2024.11.13
오블완 챌린지에 도전해 봐야겠다!  (6) 2024.11.06

 

  • 설치 스크립트가 워낙 잘 되어 있어 매우 쉽게 설치가 가능하지만 gpu 가속이 되지 않아 실 사용은 거의 불가능한 수준
    • 최신 Sequoia는 도중에 멈추면서 설치가 정상적으로 안됐음
    • Ventura는 정상적으로 잘 설치 됨
  • n100 cpu 의 성능은 딸리고...
  • gpu 가속도 안되고...
  • gpu passthrough를 시킨다고 하더라도 macOS 용 intel 12th igpu의 driver 가 존재하지 않기 때문에 gpu 가속이 불가능함
  • 이걸 해결 하려면 intel 8th ~ 10th i3, i5, i7 cpu와 main board를 구해야 함
    • n100 산지 일주일 됐는데 또 장난감을 사긴 그러니... 조금 참았다 사자.

  • 설치 시 반응이 느리기 때문에 인내심을 가지고 잘 설치해야 함

  • macOS Ventura (macOS 13) 설치 완료

  • GPU가 없기 대문에 Graphics 정보에 Display 7MB 라고 표시됨
  • 어디까지나 "이런 것도 된다"는 용도의 장난감으로 사용하도록 합시다.
반응형

+ Recent posts