docker 컨테이너에서 vi 사용# Virtualation/Docker2021. 8. 5. 15:07
Table of Contents
728x90
반응형
docker 컨테이너에서 vi사용하기 위해서는 해당 컨테이너 접속후 아래와 같이 진행하면 됨.
[root@darksharavim data]# docker exec -it mariadb bash
컨테이너 접속 후 apt업데이트
root@feacbe546b00:/# apt-get update
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [786 kB]
Get:1 https://archive.mariadb.org/mariadb-10.6.3/repo/ubuntu focal InRelease [6264 B]
Get:4 https://archive.mariadb.org/mariadb-10.6.3/repo/ubuntu focal/main amd64 Packages [16.9 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [989 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [30.6 kB]
Get:7 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [432 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [478 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1424 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1056 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [39.0 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [2668 B]
Get:20 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [6319 B]
Fetched 18.7 MB in 1min 14s (253 kB/s)
Reading package lists... Done
vim설치
root@feacbe546b00:/# apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
alsa-topology-conf alsa-ucm-conf file libasound2 libasound2-data libcanberra0 libexpat1 libgpm2 libltdl7 libmagic-mgc libmagic1 libmpdec2 libogg0 libpython3.8 libpython3.8-minimal libpython3.8-stdlib
libtdb1 libvorbis0a libvorbisfile3 mime-support sound-theme-freedesktop vim-common vim-runtime xxd
Suggested packages:
libasound2-plugins alsa-utils libcanberra-gtk0 libcanberra-pulse gpm ctags vim-doc vim-scripts
The following NEW packages will be installed:
alsa-topology-conf alsa-ucm-conf file libasound2 libasound2-data libcanberra0 libexpat1 libgpm2 libltdl7 libmagic-mgc libmagic1 libmpdec2 libogg0 libpython3.8 libpython3.8-minimal libpython3.8-stdlib
libtdb1 libvorbis0a libvorbisfile3 mime-support sound-theme-freedesktop vim vim-common vim-runtime xxd
0 upgraded, 25 newly installed, 0 to remove and 4 not upgraded.
Need to get 12.8 MB of archives.
After this operation, 64.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libmagic-mgc amd64 1:5.38-4 [218 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 libmagic1 amd64 1:5.38-4 [75.9 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 file amd64 1:5.38-4 [23.3 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/main amd64 libexpat1 amd64 2.2.9-1build1 [73.3 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 libmpdec2 amd64 2.4.2-3 [81.1 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-minimal amd64 3.8.10-0ubuntu1~20.04 [717 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/main amd64 mime-support all 3.64ubuntu1 [30.6 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-stdlib amd64 3.8.10
728x90
반응형
'# Virtualation > Docker' 카테고리의 다른 글
Dockerfile Image 생성 (0) | 2021.08.19 |
---|---|
docker oracle 12c 설치 (0) | 2021.08.09 |
docker mssql 2019 설치 (0) | 2021.08.05 |
docker mariadb 설치 (0) | 2021.08.04 |
docker 기본 명령어 (0) | 2021.04.01 |
@다크쉐라빔 :: 다크쉐라빔의 주절주절
안녕하세요. 이곳은 IT위주의 잡다한 정보를 올려두는 개인 블로그입니다.
포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!