코딩/Docker2021. 3. 16. 13:55

빌드

이미지 빌드
# docker build <옵션> <Dockerfile 경로>
옵션 -t, --tag="": <저장소명>/<이미지명>:<태그> 설정
예 docker build .
예 docker build -t repo01 .
예 docker build -t repo01/server:1.0 ./doc
* Dockerfile
  FROM "기본이미지"
  ADD "이미지에 추가할 파일"
  RUN "실행할 명령어"

사용

이미지 목록 보기
# docker images 또는 docker image ls

이미지 실행
# docker run <이미지명>
docker run image01 

이미지 실행 후 /bin/bash 바로 수행
# docker run -i -t <이미지명> <실행할명령>
인자 -i (interactive), -t 가상 터미널 에뮬레이션, -d 데몬으로 실행
 docker run -i -t ubuntu /bin/bash
    Ctrl+D (/bin/bash 종료)

이미지 실행 후 인위적으로 종료되지 않도록 하기
(작업이 끝나지 않도록 하면 돌고 있게됨)
# docker run -i -t <이미지명> bin/bash
# Ctrl+P+Ctrl+Q (bash 종료하지만 백그라운드로 구동됨)

컨테이너에 접속
# docker attach <컨테이너ID>

삭제

이미지 삭제
# docker rmi <이미지ID>
예 docker rmi 1234
컨테이너 삭제
# docker rm <컨테이너 명>
docker rm abc
모두 삭제
# docker rm `docker ps -a -q`

검색

이미지 검색
# docker search <키워드>
예 docker search ubuntu

이미지 다운로드
# docker pull <이미지>
예 docker pull ubuntu:lastest

Posted by foon
쇼핑2018. 12. 31. 14:20

안방에 노트북을 올려놓고 사용할 책상이 필요하여 구매했습니다.


검색

선택 물품 제외하고 괜찮아 보이는 제품이 안 보임

선택

홈프리퍼니쳐 1인용 침대 쇼파 노트북 컴퓨터 다용도 접이식 간이 미니 작은 보조 책상

가격 17,400원 + 배송료 3000원 = 20,400원

구매일

2018-12-31

구매URL

https://smartstore.naver.com/raphaeltrader/products/3075604134?NaPm=ct%3Djqbvc0m1%7Cci%3Dcheckout%7Ctr%3Dppc%7Ctrx%3D%7Chk%3D1e80cccaed627aa77bd5fedeabdfefa9b9b5342e

사진


 

'쇼핑' 카테고리의 다른 글

책상 800x600 흰색  (0) 2018.12.31
Posted by foon
쇼핑2018. 12. 31. 14:09

아들 책상이 좁아서 구매 함

검색

800x600 크기가 현재 아들 방에 넣기에 적당

심플한 책상을 원했는데, 이전에 샀던 책상이 검색되지 않음

검색에서  필웰 책상이 많이 나오는데, 하단에 물건을 넣을 수 있도록 되어 있어 괜찮을 것 같으나,

대부분 7만원 이상으로 너무 비쌈.  아래 URL이 가장 저렴하여 구매하게 됨

선택한 책상

필웰무노공간활용책상 800x600

흰색 55,000원, 배송비 무료

특징: 책상 하단에 책장이 있음. 4구역으로 책이나 물건을 놓을 수 있음

구매일

2018-12-31

구매 URL

https://smartstore.naver.com/feelwell/products/2238320079?NaPm=ct%3Djqbubgm5%7Cci%3Dcheckout%7Ctr%3Dppc%7Ctrx%3D%7Chk%3D8f738d9cbbb3b6991dc130764110bb4a510ff10d


'쇼핑' 카테고리의 다른 글

책상 40 x 60cm, 베이지  (0) 2018.12.31
Posted by foon
Church/설교2018. 2. 18. 22:24


 정한마음

 사사기 8장 22-27절: 인생 01-07-2018

 

  


'Church > 설교' 카테고리의 다른 글

정한마음  (0) 2018.02.18
Posted by foon
Church/설교2018. 2. 18. 22:12


 설교자

 제 목

 정한마음

 느헤미야 6장 1-14절: 소통 02-11-2018

   
 

 


'Church > 설교' 카테고리의 다른 글

정한마음  (0) 2018.02.18
Posted by foon
App/CoolSupan2018. 1. 14. 21:33

CoolSupan 현재 버전은 15입니다.

Posted by foon
코딩/Visual Studio2017. 11. 10. 07:34

Visual Studio에서 빈 솔루션 생성하는 방법입니다. (VS 2015)


빈번하게 만들지 않기 때문에 한번 만들려면 찾아 헤매는 경우가 있어 기록해둡니다.


"새 프로젝트 -> 설치됨 -> 템플릿 -> 기타 프로젝트 형식 -> Visual Studio 솔루션" 입니다.


Although a project must reside in a solution, you can create a solution that has no projects.

To create an empty solution

  1. On the File menu, click New and then click New Project.

  2. In the left pane, select Installed, select Other Project Types, and then select Visual Studio Solutions from the expanded list.

  3. In the middle pane, select Blank Solution.

  4. Set the Name and Location values for your solution, then click OK.

After you create an empty solution, you can add new or existing projects or items to it by clicking Add New Item or Add Existing Item on the Projectmenu.

출처 - https://msdn.microsoft.com/en-us/library/zfzh36t7.aspx


'코딩 > Visual Studio' 카테고리의 다른 글

c# 프로젝트 참조들이 느낌표로 표시될 때  (0) 2017.11.09
Posted by foon
코딩/Visual Studio2017. 11. 9. 20:52

루션에 프로젝트를 추가하면 참조에 느낌표가 표시되면서 빌드가 안 되는 경우가 있습니다.





이때, 프로젝트 파일 ( Example.csproj )을 열었을 때, 다음 문구가 있다면, 


...


<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />

  <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

    <PropertyGroup>

      <ErrorText>이 프로젝트는 이 컴퓨터에 없는 NuGet 패키지를 참조합니다. ... </ErrorText>

    </PropertyGroup>

    <Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />

  </Target> 


...


아래와 같이 <!-- ... --> 로 주석 처리를 해주면 됩니다.


 

...


<!--


<Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />

  <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">

    <PropertyGroup>

      <ErrorText>이 프로젝트는 이 컴퓨터에 없는 NuGet 패키지를 참조합니다. ... </ErrorText>

    </PropertyGroup>

    <Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />

  </Target> 


-->

...


< END >

Posted by foon
학습2017. 11. 9. 07:56

큰 애가 학원에 외워갈 문장입니다. 

아이의 암기에 도움을 줄 수 있도록 몇 자 적어보니다. 같이 외워보실래요? ^^


* 원문

Most reputable universities require standardized tests for admission.

This is considered the norm for testing an applicant's proficiency.

Many students are familiar with language proficiency tests,

which measure student's ability in a foreign language.

A student who wants to go to a foreign high school, work for an international company,

or live in another country may want to take this test.


* 구글 번역기

대부분의 평판 좋은 대학은 표준화 된 입학 시험을 요구합니다.

이는 신청자의 숙련도를 테스트하는 데있어 표준으로 간주됩니다.

많은 학생들이 언어 능력 테스트에 익숙하며,

외국어로 학생의 능력을 측정합니다.

외국 고등학교에 가고 싶어하는 학생, 국제적인 회사에서 일하는 학생,

또는 다른 나라에 거주하는 경우이 시험을 치를 수 있습니다.


* 단어

reputable 평판이 좋은

admission 입학(허가)

proficiency 숙련도


* 주어 / 동사 + 목적어 or 꾸밈

Most reputable universities / require standardized tests for admission.

This / is considered the norm for testing an applicant's proficiency.

Many students / are familiar with language proficiency tests,

which / measure student's ability in a foreign language

A student [ who / wants to go to a foreign high school, work for an international company,

or live in another country ] / may want to take this test.


require ~을 필요로하다

is ~ 다 ( 이러하다 )

are ~ 다 ( 이러하다 )

measure 측정하다

wants 원하다 (3인칭 단수)

want 원하다 (조동사 may 뒤에 동사 원형)


* 가로넣기 1

Most ___________ universities require _______________ tests for admission.

This is ______________ the norm for testing an applicant's proficiency.

Many students are ____________ with language proficiency tests,

which measure student's ability in a ___________ language.

A student who wants to go to a ___________ high school, work for an ________________ company,

or live in _____________ country may want to take this test.


* 가로넣기 2

Most reputable ___________ require standardized tests for __________.

This is considered the _______ for testing an applicant's ____________.

Many students are familiar with language proficiency tests,

which measure student's _________ in a foreign __________.

A student who wants to go to a foreign high school, work for an international ___________,

or live in another ___________ may want to take this test.

Posted by foon
컴퓨터/유용정보2016. 1. 30. 13:43

먼저 CDex를 다운로드 받아 설치합니다.


1.  http://cdex.mu/download 로 이동합니다.


2.  이동한 창에서 다음 파란 부분을 선택하여 다운로드합니다.




3.  다운로드된 CDex-1.79-win32.exe 파일을 실행하여 설치합니다.


다음으로 MP3파일로 바꾸고 싶은 오디오 CD 넣습니다.


윈도우 바탕화면에 있는 CDex 아이콘을 더블 클릭하여 실행합니다. (그림 1)


그림 1. 윈도우 바탕화면의 CDex 실행 아이콘


다음과 같이 자동으로 CDex 창에 오디오 CD의 트랙들이 표시됩니다.


그림 2. 오디오 CD를 넣고, CDex를 실행했을 때 모습


위 그림 2 에서 다음을 수행합니다.

    #1 Artist를 입력합니다. (모르면, CD 이름 등 원하는 것을 넣습니다.)

    #2 Album을 입력합니다. (모르면, CD 이름 등 원하는 것을 넣습니다.)

    #3 설정 버튼을 선택하여, 변환되는 MP3파일의 출력 위치를 확인합니다.

    #4 "오디오 CD -> MP3" 변환 시작 버튼을 누릅니다.


그림 2의 #3 설정 버튼을 선택하면, 그림 3이 나옵니다.


    그림 3의 #A를 선택하면, #B에서 MP3파일의 출력 위치를 확인할 수 있습니다.

    MP3파일의 출력 위치를 변경하려면, #C를 선택하고,

    그림 4에서 원하는 폴더를 선택하면 됩니다.


그림 3. 출력 위치 확인 


그림 4. 출력 위치 변경


그림 2의 #4 "오디오 CD -> MP3" 변환 시작 버튼을 누르면, 다음과 같은 창 (그림 5)이 뜨고 변환이 시작됩니다.

변환이 끝나면, 그림 6과 같이 Status에 OK가 나옵니다.

윈도우 탐색기를 이용하여, 그림 7과 같이 출력 위치를 확인합니다.

끝.


그림 5. 오디오 CD -> MP3 파일 변환 중


그림 6. 오디오 CD -> MP3 파일 변환 끝




그림 7. 윈도우 탐색기를 실행해서 MP3 파일 확인



Posted by foon