LoginSignup
1
1

More than 3 years have passed since last update.

Docker初心者に立ちはだかるエラー

Posted at

下記サイトからDockerを学んでいるときに出会ったエラー
https://tech-lab.sios.jp/archives/19191

Dockerイメージを作ろうと
docker buildをした際に起こりました。
Sending build context to Docker daemon
がひたすら続くというエラー。。
下のようなエラーも出たりで、、

ERRO[0529] Can't add file /Users/shingo/Library/Application Support/Code/1.45.1-main.sock to tar: archive/tar: sockets not supported 
ERRO[0529] Can't add file /Users/shingo/Library/Application Support/Code/1.45.1-shared.sock to tar: archive/tar: sockets not supported

一向にイメージを作れる気配もなく、中断しました。

色々と調べた結果
https://ytooyama.hatenadiary.jp/entry/2018/04/06/003019
この記事を発見!

Dockerファイルをホームディレクトリに作成し、docker buildを実行していたので
DockerクライアントからDocker daemonに対して、ホームディレクトリ配下のファイルを全て転送していたようです。
~/working/dockerディレクトリを作成し、そこにDockerfile「だけ」を作成しました。
その後
buildが成功しました。

なんとも簡単な、、

PC
余計な仕事させてごめんよ!!

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1