Linux 488

python pip 패키시 오프라인 환경에서 설치

python pip 패키시 오프라인 환경에서 설치 우선 pypiserver 설치를 해야 한다. # yum install python3* -y # yum install python3-pip* # pip3 install pypiserver 데이터 저장소 생성 # mkdir /data/ # yum install -y httpd-tools # pip3 install passlib # htpasswd -sc /data/htpasswd.txt admin 암호 입력 # pypi-server -p 8080-P /data/htpasswd.txt /data/ & # service firewalld stop 하고 http://localhost:8080 하면 위와 같이 pypiserver 구동 되는것을 확인 할 수 있다. 그..

Linux 2021.03.04

hint: Updates were rejected because the remote contains work that you dohint: not have locally. This is usually caused by another repository pushing

# git push -u origin master Username for 'http://gitlab.com': test Password for 'http://test@gitlab.com': To http://gitlab.com/root/test.git ! [rejected] master -> master (fetch first) error: failed to push some refs to 'http://gitlab.com/root/test.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pu..

Linux 2021.02.18

docker image 만들어서 Private Docker Registry 등록

registry 가 있어야 등록이 됨으로 먼저 설치 하자 # docker pull registry # docker run -d -p 5000:5000 registry 우선 자신만의 docker image 를 만들자. # vi Dockerfile FROM centos:7 RUN yum install epel-release* -y RUN yum -y update CMD ["/usr/sbin/sshd", "-D"] Dockerfile 에 설정을 해서 # docker build -t centos7 명령을 입력 하면 해당 이미지가 만들어진다. Private Docker Registry 등록을 하자. # docker tag centos7 localhost:5000/centos7 # docker push localh..

Linux 2021.02.09

docker volume mount

docker volume 마운트 방법 -- 우선 볼륨 생성 # docker volume create work -- 생성 확인 # docker volume ls DRIVER VOLUME NAME local work 생성 되었고. -- 이미지에 마운트 # docker run -itd --detach -v work:/work --name centos7 --restart always centos:7 접속 해보면 # docker exec -it centos7 /bin/bash [root@cb9bdb58daa1 /]# df Filesystem 1K-blocks Used Available Use% Mounted on overlay 943793916 89271488 854522428 10% / tmpfs 65536 0..

Linux 2021.02.03

docker 네트워크 추가 하기

docker 를 이용해서 centos7 를 설치 해보자.# docker run -itd --name centos7 centos:7 # docker exec -it centos7 /bin/bash접속 해보면# ifconfig 를 이용해 IP 확인해보자.하지만 centos7 이미지는 깡통이다. 아무것도 설치가 안되 있어 모두 설치 해줘야 한다.# yum install -y net-tools# ifconfigeth0: flags=4163 mtu 1500 inet 172.17.0.5 netmask 255.255.0.0 broadcast 172.17.255.255 ether 02:42:ac:11:00:05 txqueuelen 0 (Ethernet) RX packets 2657 bytes 12147479 (11.5..

Linux 2021.01.28
728x90
반응형