'프로그램 사용'에 해당되는 글 2354건

  1. 2019.07.16 yaml
  2. 2019.07.16 kubectl
  3. 2019.07.15 Dockerfile... 2?
  4. 2019.07.15 우분투에 쿠버네티스 설치하기(minikube 사용없이)
  5. 2019.07.15 win10에서 hyper-v 끄기
  6. 2019.07.15 docker remote
  7. 2019.07.15 virtualbox headless
  8. 2019.07.15 minikube
  9. 2019.07.15 UTS name space
  10. 2019.07.15 LXC LXD

저...언혀 사람이 쓰기 안편한데...

내가 사람이 아닌건가?!

(아니 난.. XML이나 JSON이 훨 편한데? ㅠㅠ)

 

[링크 : https://yaml.org/]

 

+

헐.. JSON의 슈퍼셋이 YAML이라니.. YAML이 더 큰거였다니!?!

Technically YAML is a superset of JSON. This means that, in theory at least, a YAML parser can understand JSON, but not necessarily the other way around.

See the official specs, in the section entitled "YAML: Relation to JSON".

[링크 : https://stackoverflow.com/questions/1726802/]

 

+

어짜피 그게 그거라 docker에서도 json으로 쓰면 yml이랑 상관없이 알아서 읽는 듯?

[링크 : https://docs.docker.com/compose/faq/]

Posted by 구차니

docker 처럼 명령어가 넘쳐나는구만

 

C:>kubectl
kubectl controls the Kubernetes cluster manager.

 Find more information at: https://kubernetes.io/docs/reference/kubectl/overview/

Basic Commands (Beginner):
  create         Create a resource from a file or from stdin.
  expose         Take a replication controller, service, deployment or pod and expose it as a new
Kubernetes Service
  run            Run a particular image on the cluster
  set            Set specific features on objects

Basic Commands (Intermediate):
  explain        Documentation of resources
  get            Display one or many resources
  edit           Edit a resource on the server
  delete         Delete resources by filenames, stdin, resources and names, or by resources and
label selector

Deploy Commands:
  rollout        Manage the rollout of a resource
  scale          Set a new size for a Deployment, ReplicaSet, Replication Controller, or Job
  autoscale      Auto-scale a Deployment, ReplicaSet, or ReplicationController

Cluster Management Commands:
  certificate    Modify certificate resources.
  cluster-info   Display cluster info
  top            Display Resource (CPU/Memory/Storage) usage.
  cordon         Mark node as unschedulable
  uncordon       Mark node as schedulable
  drain          Drain node in preparation for maintenance
  taint          Update the taints on one or more nodes

Troubleshooting and Debugging Commands:
  describe       Show details of a specific resource or group of resources
  logs           Print the logs for a container in a pod
  attach         Attach to a running container
  exec           Execute a command in a container
  port-forward   Forward one or more local ports to a pod
  proxy          Run a proxy to the Kubernetes API server
  cp             Copy files and directories to and from containers.
  auth           Inspect authorization

Advanced Commands:
  diff           Diff live version against would-be applied version
  apply          Apply a configuration to a resource by filename or stdin
  patch          Update field(s) of a resource using strategic merge patch
  replace        Replace a resource by filename or stdin
  wait           Experimental: Wait for a specific condition on one or many resources.
  convert        Convert config files between different API versions
  kustomize      Build a kustomization target from a directory or a remote url.

Settings Commands:
  label          Update the labels on a resource
  annotate       Update the annotations on a resource
  completion     Output shell completion code for the specified shell (bash or zsh)

Other Commands:
  api-resources  Print the supported API resources on the server
  api-versions   Print the supported API versions on the server, in the form of "group/version"
  config         Modify kubeconfig files
  plugin         Provides utilities for interacting with plugins.
  version        Print the client and server version information

Usage:
  kubectl [flags] [options]

Use "kubectl <command> --help" for more information about a given command.
Use "kubectl options" for a list of global command-line options (applies to all commands).

'프로그램 사용 > kubernetes' 카테고리의 다른 글

kubernetes ImagePullBackOff 에러  (0) 2019.07.16
yaml  (0) 2019.07.16
우분투에 쿠버네티스 설치하기(minikube 사용없이)  (0) 2019.07.15
win10에서 hyper-v 끄기  (0) 2019.07.15
minikube  (0) 2019.07.15
Posted by 구차니
프로그램 사용/docker2019. 7. 15. 15:51

 

Dockerfile

COPY .(host) .(container)

CMD 는 ENTRYPOINT의 일부(둘다 지정시)


CMD
The CMD instruction has three forms:
CMD ["executable","param1","param2"] (exec form, this is the preferred form)
CMD ["param1","param2"] (as default parameters to ENTRYPOINT)
CMD command param1 param2 (shell form) <<<<< SHELL FORM

 


docker run -it ubuntu bash
는 cmd를 엎어 씀
entrypoint는 덮어 쓸수 없음(그렇기에 entry point없이 cmd만으로 된것으로 확인할수 있음)

        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
            ],
            "Cmd": [
                "/bin/bash"
            ],
            "ArgsEscaped": true,
            "Image": "sha256:ae950a0376fe6c4d08fa7ff395f50f4a909e26e9f2d865d8641cda024161c6ee",
            "Volumes": null,
            "WorkingDir": "",
            "Entrypoint": null,
            "OnBuild": null,
            "Labels": null
        },

----

docker run help
      --entrypoint string              Overwrite the default ENTRYPOINT of the image

 


[링크 : https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact]

 

 

복수개의 Run

FROM golang:1.11-alpine AS build

# Install tools required for project
# Run `docker build --no-cache .` to update dependencies
RUN apk add --no-cache git
RUN go get github.com/golang/dep/cmd/dep

# List project dependencies with Gopkg.toml and Gopkg.lock
# These layers are only re-built when Gopkg files are updated
COPY Gopkg.lock Gopkg.toml /go/src/project/
WORKDIR /go/src/project/
# Install library dependencies
RUN dep ensure -vendor-only

# Copy the entire project and build it
# This layer is rebuilt when a file changes in the project directory
COPY . /go/src/project/
RUN go build -o /bin/project

# This results in a single layer image
FROM scratch
COPY --from=build /bin/project /bin/project
ENTRYPOINT ["/bin/project"]
CMD ["--help"]


[링크 : https://docs.docker.com/develop/develop-images/dockerfile_best-practices/]

'프로그램 사용 > docker' 카테고리의 다른 글

도커 cpu 갯수 제한  (0) 2024.03.22
docker snap 버전 문제  (0) 2022.10.12
docker remote  (0) 2019.07.15
UTS name space  (0) 2019.07.15
LXC LXD  (0) 2019.07.15
Posted by 구차니

'프로그램 사용 > kubernetes' 카테고리의 다른 글

kubernetes ImagePullBackOff 에러  (0) 2019.07.16
yaml  (0) 2019.07.16
kubectl  (0) 2019.07.16
win10에서 hyper-v 끄기  (0) 2019.07.15
minikube  (0) 2019.07.15
Posted by 구차니

'프로그램 사용 > kubernetes' 카테고리의 다른 글

kubernetes ImagePullBackOff 에러  (0) 2019.07.16
yaml  (0) 2019.07.16
kubectl  (0) 2019.07.16
우분투에 쿠버네티스 설치하기(minikube 사용없이)  (0) 2019.07.15
minikube  (0) 2019.07.15
Posted by 구차니
프로그램 사용/docker2019. 7. 15. 15:48

docker의 환경변수로 특정 서버를 지정해줄때 아래와 같이

DOCKER_HOST 변수를 통해 기본으로 사용될 원격 서버를 변경할 수 있다.

 

minikube docker-env | Invoke-Expression


SET DOCKER_TLS_VERIFY=1
SET DOCKER_HOST=tcp://192.168.99.100:2376
SET DOCKER_CERT_PATH=C:\Users\CCCR-EDU-5\.minikube\certs
REM Run this command to configure your shell:
REM @FOR /f "tokens=*" %i IN ('minikube docker-env') DO @%i

[링크 : https://stackoverflow.com/questions/44446472/docker-run-on-a-remote-host]

'프로그램 사용 > docker' 카테고리의 다른 글

docker snap 버전 문제  (0) 2022.10.12
Dockerfile... 2?  (0) 2019.07.15
UTS name space  (0) 2019.07.15
LXC LXD  (0) 2019.07.15
docker ps exited만 보기  (0) 2019.07.10
Posted by 구차니

virtualbox headless 옵션은 background로 실행한다.

[링크 : https://twpower.github.io/149-run-virutalbox-vm-in-background]

Posted by 구차니

kubenetes 윈도우용 버전

일부 기능은 제한되어 있다고 하는데.. 실습용으로는 충분하다고 한다.

 

[링크 : https://github.com/kubernetes/minikube]

'프로그램 사용 > kubernetes' 카테고리의 다른 글

kubernetes ImagePullBackOff 에러  (0) 2019.07.16
yaml  (0) 2019.07.16
kubectl  (0) 2019.07.16
우분투에 쿠버네티스 설치하기(minikube 사용없이)  (0) 2019.07.15
win10에서 hyper-v 끄기  (0) 2019.07.15
Posted by 구차니
프로그램 사용/docker2019. 7. 15. 15:45

namespace
UTS - UNIX Time Sharing

[링크 : https://unix.stackexchange.com/questions/183717/whats-a-uts-namespace ]


UTS namespaces allow a single system to appear to have different host and domain names to different processes. 

[링크 : https://en.wikipedia.org/wiki/Linux_namespaces ]

[링크 : https://windsock.io/uts-namespace/]

'프로그램 사용 > docker' 카테고리의 다른 글

Dockerfile... 2?  (0) 2019.07.15
docker remote  (0) 2019.07.15
LXC LXD  (0) 2019.07.15
docker ps exited만 보기  (0) 2019.07.10
docker import / export 그리고 save / load  (0) 2019.07.10
Posted by 구차니
프로그램 사용/docker2019. 7. 15. 15:45

LXC
LXD (캐노니컬 그룹에서 docker에 대응하는?)


[링크 : https://ingeec.tistory.com/79]

[링크 : https://en.wikipedia.org/wiki/OS-level_virtualisation#Implementations]

'프로그램 사용 > docker' 카테고리의 다른 글

docker remote  (0) 2019.07.15
UTS name space  (0) 2019.07.15
docker ps exited만 보기  (0) 2019.07.10
docker import / export 그리고 save / load  (0) 2019.07.10
docker pid isolation  (0) 2019.07.10
Posted by 구차니