# 심볼릭 링크 생성 ln -s (원본) (링크) ln -s "/Applications/Docker.app/Contents/Resources/bin/com.docker.cli" /usr/local/bin/com.docker.cli ln -s "/Applications/Docker.app/Contents/Resources/bin/docker" /usr/local/bin/docker ln -s "/Applications/Docker.app/Contents/Resources/bin/docker-compose" /usr/local/bin/docker-compose ln -s "/Applications/Docker.app/Contents/Resources/bin/docker-credential-desktop" /usr/local/bin/docker-credential-desktop ln -s "/Applications/Docker.app/Contents/Resources/bin/docker-credential-osxkeychain" /usr/local/bin/docker-credential-osxkeychain
# VirtualBox와 docker-machine 설치 brew install virtualbox docker-machine
# 터미널에서 docker-machine 생성 docker-machine create \ --driver "virtualbox" \ --virtualbox-cpu-count "1" \ --virtualbox-disk-size "40000" \ --virtualbox-memory "8192" \ --virtualbox-no-vtx-check \ ubuntu
# 설치내역 확인 ( machine-name : ubuntu ) docker-machine env ubuntu # 출력되는 값 export DOCKER_TLS_VERIFY="1" export DOCKER_HOST="tcp://192.168.99.100:2376" export DOCKER_CERT_PATH="/Users/llallallall/.docker/machine/machines/ubuntu" export DOCKER_MACHINE_NAME="ubuntu" # Run this command to configure your shell: # eval $(docker-machine env oracle)
# 환경 변수 저장 ( machine-name : ubuntu ) eval $(docker-machine env ubuntu) # 출력되는 값은 따로 없습니다.
# 도커 머신 확인 docker-machine ls # 출력되는 값 NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS ubuntu * virtualbox Running tcp://192.168.99.100:2376 v19.03.12
# 환경 변수 저장 ( machine-name : ubuntu ) eval $(docker-machine env ubuntu) # 출력되는 값은 따로 없습니다.
# 도커 머신 확인 docker-machine ls # 출력되는 값 NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS ubuntu * virtualbox Running tcp://192.168.99.100:2376 v19.03.12
# docker registry 에서 ubuntu 이미지 검색 docker search ubuntu # 출력된 값 NAME DESCRIPTION STARS OFFICIAL AUTOMATED ubuntu Ubuntu is a Debian-based Linux operating sys… 12402 [OK] dorowu/ubuntu-desktop-lxde-vnc Docker image to provide HTML5 VNC interface … 543 [OK] websphere-liberty WebSphere Liberty multi-architecture images … 274 [OK] rastasheep/ubuntu-sshd Dockerized SSH service, built on top of offi… 253 [OK] consol/ubuntu-xfce-vnc Ubuntu container with "headless" VNC session… 241 [OK] ubuntu-upstart Upstart is an event-based replacement for th… 110 [OK] ansible/ubuntu14.04-ansible Ubuntu 14.04 LTS with ansible 98 [OK] 1and1internet/ubuntu-16-nginx-php-phpmyadmin-mysql-5 ubuntu-16-nginx-php-phpmyadmin-mysql-5 50 [OK] open-liberty Open Liberty multi-architecture images based… 46 [OK] ubuntu-debootstrap debootstrap --variant=minbase --components=m… 44 [OK] i386/ubuntu Ubuntu is a Debian-based Linux operating sys… 25 nuagebec/ubuntu Simple always updated Ubuntu docker images w… 24 [OK] 1and1internet/ubuntu-16-apache-php-5.6 ubuntu-16-apache-php-5.6 14 [OK] 1and1internet/ubuntu-16-apache-php-7.0 ubuntu-16-apache-php-7.0 13 [OK] 1and1internet/ubuntu-16-nginx-php-phpmyadmin-mariadb-10 ubuntu-16-nginx-php-phpmyadmin-mariadb-10 11 [OK] 1and1internet/ubuntu-16-nginx-php-5.6-wordpress-4 ubuntu-16-nginx-php-5.6-wordpress-4 9 [OK] 1and1internet/ubuntu-16-apache-php-7.1 ubuntu-16-apache-php-7.1 7 [OK] 1and1internet/ubuntu-16-nginx-php-7.0 ubuntu-16-nginx-php-7.0 4 [OK] pivotaldata/ubuntu A quick freshening-up of the base Ubuntu doc… 4 pivotaldata/ubuntu16.04-build Ubuntu 16.04 image for GPDB compilation 2 smartentry/ubuntu ubuntu with smartentry 1 [OK] 1and1internet/ubuntu-16-php-7.1 ubuntu-16-php-7.1 1 [OK] pivotaldata/ubuntu-gpdb-dev Ubuntu images for GPDB development 1 1and1internet/ubuntu-16-sshd ubuntu-16-sshd 1 [OK] 1and1internet/ubuntu-16-rspec ubuntu-16-rspec 0 [OK]
# docker pull <이미지 이름> docker pull dorowu/ubuntu-desktop-lxde-vnc # 출력된 값 Using default tag: latest latest: Pulling from dorowu/ubuntu-desktop-lxde-vnc a70d879fa598: Pull complete c4394a92d1f8: Pull complete 10e6159c56c0: Pull complete 6d516dea5dcb: Pull complete 2c326a79b2c1: Pull complete 77c398b95e39: Pull complete 1a5adfd9ff08: Pull complete d8327acdb588: Pull complete b4d11d536f7c: Pull complete 0403b18ddc74: Pull complete c163d8624a71: Pull complete 1dc3570b5fa6: Pull complete 6f9c71cf3486: Pull complete e02f721e36c7: Pull complete ba596a49f65e: Pull complete 31c6cc0bdd8d: Pull complete Digest: sha256:775184eaa5bbc01bc4261a6c9596a642b3b43a433c1508637567bc724575964b Status: Downloaded newer image for dorowu/ubuntu-desktop-lxde-vnc:latest docker.io/dorowu/ubuntu-desktop-lxde-vnc:latest
# docker 이미지 확인 docker images # 출력된 값 REPOSITORY TAG IMAGE ID CREATED SIZE dorowu/ubuntu-desktop-lxde-vnc latest 1a89db715923 2 months ago 1.32GB
# docker container 생성 # docker run --name <container-name> -d -p <내부포트>:<외부포트> -p <내부포트>:<외부포트> -v <디렉토리 경로> <이미지 이름> docker run -p 6080:80 -p 5900:5900 -v /자료/AI/ubuntu/dorowu dorowu/ubuntu-desktop-lxde-vnc # 출력된 값 2021-06-20 02:34:54,717 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing 2021-06-20 02:34:54,720 INFO RPC interface 'supervisor' initialized 2021-06-20 02:34:54,720 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2021-06-20 02:34:54,720 INFO supervisord started with pid 11 2021-06-20 02:34:55,725 INFO spawned: 'nginx' with pid 13 2021-06-20 02:34:55,727 INFO spawned: 'web' with pid 14 2021-06-20 02:34:55,743 INFO spawned: 'xvfb' with pid 15 2021-06-20 02:34:55,747 INFO spawned: 'wm' with pid 16 2021-06-20 02:34:55,760 INFO spawned: 'lxpanel' with pid 17 2021-06-20 02:34:55,774 INFO spawned: 'pcmanfm' with pid 18 2021-06-20 02:34:55,789 INFO spawned: 'x11vnc' with pid 20 2021-06-20 02:34:55,804 INFO spawned: 'novnc' with pid 21 2021-06-20 02:34:56,253 INFO Listening on https://localhost:6079 (run.py:87) 2021-06-20 02:34:56,818 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2021-06-20 02:34:56,818 INFO success: web entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2021-06-20 02:34:56,818 INFO success: xvfb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2021-06-20 02:34:56,818 INFO success: wm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2021-06-20 02:34:56,819 INFO success: lxpanel entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2021-06-20 02:34:56,819 INFO success: pcmanfm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2021-06-20 02:34:56,819 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2021-06-20 02:34:56,819 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
# docker-machine 시작
docker-machine start ubuntu
#출력된 값
Starting "ubuntu"...
(ubuntu) Check network to re-create if needed...
(ubuntu) Waiting for an IP...
Machine "ubuntu" was started.
Waiting for SSH to be available...
Detecting the provisioner...
Started machines may have new IP addresses. You may need to re-run the docker-machine env
command.
#docker-machine 환경변수 확인 docker-machine env ubuntu #출력된 값 export DOCKER_TLS_VERIFY="1" export DOCKER_HOST="tcp://192.168.99.101:2376" export DOCKER_CERT_PATH="/Users/llallallall/.docker/machine/machines/ubuntu" export DOCKER_MACHINE_NAME="ubuntu" # Run this command to configure your shell: # eval $(docker-machine env ubuntu)
eval $(docker-machine env ubuntu)
# docker-machine 환경변수 저장 eval $(docker-machine env ubuntu) # 출력된 값은 없습니다.
#docker container 시작 docker run -p 6080:80 -p 5900:5900 -v /자료/AI/ubuntu/dorowu dorowu/ubuntu-desktop-lxde-vnc #출력된 값 2021-06-20 03:01:57,369 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message. 2021-06-20 03:01:57,370 INFO Included extra file "/etc/supervisor/conf.d/supervisord.conf" during parsing 2021-06-20 03:01:57,373 INFO RPC interface 'supervisor' initialized 2021-06-20 03:01:57,374 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2021-06-20 03:01:57,374 INFO supervisord started with pid 11 2021-06-20 03:01:58,377 INFO spawned: 'nginx' with pid 13 2021-06-20 03:01:58,379 INFO spawned: 'web' with pid 14 2021-06-20 03:01:58,381 INFO spawned: 'xvfb' with pid 15 2021-06-20 03:01:58,382 INFO spawned: 'wm' with pid 16 2021-06-20 03:01:58,385 INFO spawned: 'lxpanel' with pid 17 2021-06-20 03:01:58,394 INFO spawned: 'pcmanfm' with pid 18 2021-06-20 03:01:58,406 INFO spawned: 'x11vnc' with pid 19 2021-06-20 03:01:58,409 INFO spawned: 'novnc' with pid 20 2021-06-20 03:01:58,992 INFO Listening on https://localhost:6079 (run.py:87) 2021-06-20 03:01:59,514 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2021-06-20 03:01:59,514 INFO success: web entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2021-06-20 03:01:59,515 INFO success: xvfb entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2021-06-20 03:01:59,515 INFO success: wm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2021-06-20 03:01:59,515 INFO success: lxpanel entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2021-06-20 03:01:59,515 INFO success: pcmanfm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2021-06-20 03:01:59,515 INFO success: x11vnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2021-06-20 03:01:59,515 INFO success: novnc entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
이상으로 Docker Ubuntu 설치 및 VNC 접속 방법을 알아봤습니다.
brightly님의 새글 알림을 받으실려면 구독
제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|
macOS Ventura 13.7 22H123 정식버젼 고스트 이미지 OC 1.0.1 ft: 전체 공개 +3 | 좌절금지 | 24.09.1917:09 | 104 |
macOS Sonoma 14.7 23H124 정식버젼 고스트 이미지 OC 1.0.1 ft: 전체공개 +16 | 좌절금지 | 24.09.1723:58 | 219 |
[중급편] 노트북 해킨 +8 | Stultus | 24.07.1219:19 | 760 |
[초급편] 문제 스스로 해결하기 +17 | Stultus | 24.03.2920:07 | 3542 |
[입문편] 첫 해킨 길라잡이 +32 | Stultus | 24.01.1218:54 | 4305 |
[필독 - 안정화] macOS 해킨토시 설치 후 안정화 작업 목록 및 글타래 모음 총정리 📋 +63 | shl628 | 23.01.0913:39 | 5만 |
macOS Sequoia 15 설치 후기 + Bcm94360NG WiFi 작동함 | 좌절금지 | 24.09.1919:17 | 259 |
[ Sequoia 15.0, OC 1.0.1 ] BIOSTAR H410MH, i5-10500, RX580 | Stultus | 24.09.1813:37 | 179 |
좌절금지 | 24.09.1919:17 | 259 | |
좌절금지 | 24.09.1917:09 | 104 | |
Stultus | 24.09.1813:37 | 179 | |
좌절금지 | 24.09.1723:58 | 219 | |
좌절금지 | 24.09.1722:40 | 253 | |
맥가즈아 | 24.09.1717:13 | 103 | |
김경석 | 24.09.1708:13 | 254 | |
Panictosh | 24.09.1617:47 | 102 | |
Tamy | 24.09.1504:35 | 473 | |
Stultus | 24.09.1319:18 | 443 | |
치토 | 24.09.1019:44 | 476 | |
머핀X | 24.09.0118:13 | 398 | |
해킨도전자 | 24.09.0112:54 | 300 | |
머핀X | 24.08.3115:34 | 376 | |
화정큐삼 | 24.08.2601:42 | 241 | |
하나브 | 24.08.2422:59 | 213 | |
화정큐삼 | 24.08.2316:25 | 249 | |
CanBe | 24.08.1810:56 | 330 | |
화정큐삼 | 24.08.1800:04 | 205 | |
화정큐삼 | 24.08.1722:03 | 191 | |
jbhlyk | 24.08.1710:14 | 167 | |
Stultus | 24.08.1622:06 | 253 | |
hackillious | 24.08.1511:16 | 159 | |
세유니 | 24.08.1421:30 | 124 | |
Stultus | 24.08.1419:58 | 348 | |
오디세이 | 24.08.1311:26 | 272 | |
좌절금지 | 24.08.1115:46 | 194 | |
티타보르 | 24.08.1111:21 | 141 | |
Stultus | 24.08.1022:46 | 183 | |
오디세이 | 24.08.1022:10 | 394 | |
jbhlyk | 24.08.1019:05 | 127 | |
RogerT | 24.08.0923:20 | 145 | |
좌절금지 | 24.08.0717:18 | 286 | |
RogerT | 24.08.0609:17 | 115 | |
줌바이퍼 | 24.08.0606:14 | 466 | |
jbhlyk | 24.08.0523:34 | 81 | |
수인과윤슈 | 24.08.0521:10 | 186 | |
좌절금지 | 24.08.0521:08 | 838 | |
Stultus | 24.08.0221:07 | 434 | |
Tamy | 24.07.3019:12 | 344 | |
해킨도전자 | 24.07.2915:37 | 264 | |
june119 | 24.07.2813:52 | 233 | |
Stultus | 24.07.2112:43 | 246 | |
BlueGuerrilla | 23.05.0502:19 | 3995 | |
Stultus | 24.07.1219:19 | 760 | |
김태국 | 21.08.0213:10 | 3679 | |
Stultus | 24.07.1122:47 | 216 | |
Stultus | 24.07.1020:44 | 139 | |
Stultus | 24.07.0921:44 | 138 | |
Stultus | 24.07.0820:57 | 225 | |
의정이 | 24.07.0811:28 | 172 | |
Stultus | 24.07.0721:25 | 265 | |
bsiugr | 24.07.0604:41 | 289 | |
애플브리크 | 24.07.0509:56 | 496 | |
광호 | 24.02.1715:21 | 2189 | |
치토 | 24.06.2723:24 | 400 | |
talas | 24.06.2617:24 | 193 | |
블루사탕 | 24.06.2120:58 | 116 | |
gtrfxdsp | 24.06.1609:01 | 515 | |
Mactopia | 24.06.1401:04 | 345 | |
Stultus | 24.06.1120:40 | 732 | |
새콤칠리 | 24.06.1115:07 | 673 | |
좌절금지 | 23.02.2118:35 | 118만 | |
Steer | 24.06.1001:11 | 276 | |
Door | 24.06.0810:09 | 155 | |
Tamy | 24.06.0107:41 | 417 | |
ssdwe346 | 24.05.2923:53 | 301 | |
joy | 24.05.2809:58 | 267 | |
거니 | 24.05.2601:07 | 243 | |
RogerT | 24.05.2520:14 | 247 | |
좌절금지 | 24.05.1812:40 | 917 | |
wjdgkdus | 24.05.1615:02 | 213 | |
Tamy | 24.05.1417:36 | 797 | |
줌바이퍼 | 24.05.1002:04 | 1010 | |
의정이 | 24.05.0821:05 | 144 | |
ryzen | 23.10.0921:28 | 2411 | |
챠니앤차니 | 24.05.0319:15 | 146 | |
챠니앤차니 | 24.05.0220:17 | 175 | |
고맹이 | 24.05.0210:00 | 635 | |
shl628 | 24.04.3013:54 | 1067 |
유용한 내용이네요
긴글 작성 수고 했내요
감사합니다
시간날때 따라 해봐야 겠네요