Docker practice (1)

SaeSimCheon·2021년 8월 18일
0

Docker

목록 보기
5/6
  • Docker Hub를 통하여 Official_python_image를 받아서 컨테이너 생성 및 git commit and push
  • Git 이미지 안에 포함되어 있음
docker run -it python
docker exec -it [CONTAINER NAME] /bin/bash
python
echo "hi" >> hello.txt
mkdir python_tutorial
git init
git config --global init.defaultBranch 'master'
git add hello.txt
git commit -m "Description"

root@:~/python_tutorial# git commit -m "F"
Author identity unknown
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got '')

email과 name 모두 설정

git commit branch -M main
git remote add origin "repo address"
git push -u origin main

공부해야하는 것

  • git command 잘 모름
  • brach 개념적으로 잘 모름
  • 저장소 접근할때 불필요하게 여러 차례 token 입력했음

알게된 것

  • github token access
  • git config ~ name & email
  • docker exec -it [CONTAINER NAME] /bin/bash -> bash shell

0개의 댓글