Tech Tips

to help engineers.

  • Profile
Close Button
Menu Button Search Button
Close Button
  1. ホーム
  2. tech
  3. docker

docker

entrypoint の設定された docker の中に入る

2020年12月22日

  • Facebook icon
  • Twitter icon
  • Hatena Bookmark icon
  • Google+ icon
  • Pocket icon
  • Feedly icon
  • LinkedIn icon
  • Line icon

概要

docker では entrypoint が設定されていると、
docker の中に入るために 起動シェルを変更したとしても
entrypoint の引数として認識されてしまう事がある。

entrypoint を変更する事で、コンテナ内に入る事が可能になる。

`

1
docker run -it --rm --entrypoint /bin/bash tsukada/image

 

  • Facebook icon
  • Twitter icon
  • Hatena Bookmark icon
  • Google+ icon
  • Pocket icon
  • Feedly icon
  • LinkedIn icon
  • Line icon

関連記事

  • ERROR: cannot create network conflicts with network networks have overlapping IPv4

  • “transport: dial unix /var/run/docker/containerd/docker-containerd.sock: connect: connection refused”: unknown

  • denied: requested access to the resource is denied

  • Docker: E: Unable to locate package

  • Insufficient space in download directory /var/cache/yum/x86_64/latest/amzn-main

  • standard_init_linux.go:190: exec user process caused “exec format error”

  • Unable to obtain Outpost ARN from EC2 Metadata: EC2MetadataError: failed to make EC2Metadata request

  • the input device is not a TTY

  • dockerを長期的に使いDISKを圧迫した時の対処

  • Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Profile

プロフィール画像

塚田純人 -ツカダ スミト-

Follow @19840209

Profile

 Javaエンジニア(大手研究所)
→ インフラエンジニア(DeNA)
→  エンジニア/プロマネ(rarejob)

大規模サービスでの開発&運用から、 スタートアップ向けの極力コストを抑えた設計まで提案から運用まで担当することが多い。 最近はAWSやContainerを用いたWebサービスの設計から運用。
趣味はマラソン、トライアスロン。二児の父。



カテゴリー

  • Book review (5)
  • laravel (16)
  • tech (212)
    • aws (67)
      • AWS Certified Solutions Architect – Associate (24)
    • docker (18)
    • GCP (21)
    • go (12)
    • kusanagi(wordpress) (7)
    • linux (53)
    • Mac (9)
    • mysql (4)
    • redash (17)
    • 機械学習 (7)
  • 振り返り (2)
  • 未分類 (2)

最近の投稿

  • ECS(fargate) 起動時間をスケジュール設定する
  • AWS Directory Service について
  • ALB の設定を aws cli で確認する
  • cannot be deleted because it is currently associated with another service
  • The overall deployment failed because too many individual instances failed deployment, too few healthy instances are available for deployment, or some instances in your deployment group are experiencing problems.
2020年12月
月 火 水 木 金 土 日
 123456
78910111213
14151617181920
21222324252627
28293031  
« 5月   1月 »
  • Profile
© 2021 Tech Tips

Made by Godios. Theme