Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot stop docker ran containers with md5sum waiting on stdin #123

Open
yarikoptic opened this issue Jul 17, 2020 · 1 comment
Open

cannot stop docker ran containers with md5sum waiting on stdin #123

yarikoptic opened this issue Jul 17, 2020 · 1 comment
Labels
docker Issues relating to docker support

Comments

@yarikoptic
Copy link
Member

and that containers/alpine is actually a

(even can't ^Z it)

(git-annex)lena:~/proj/repronim/demo-study[master]git-annex
$> datalad containers-run -n containers/alpine md5sum                                                                        
[INFO   ] Making sure inputs are available (this may take some time) 
[INFO   ] == Command start (output follows) ===== 
^C^C^C^C
^C^C^C^C^C^C^C

^C^C^C

^C^C^C^C

^C^C^C^Z

I had to docker stop that container explicitly to get rid of this

DataLad 0.13.0.dev302 WTF (configuration, datalad, dataset, dependencies, environment, extensions, git-annex, location, metadata_extractors, python, system)

WTF

configuration <SENSITIVE, report disabled by configuration>

datalad

  • full_version: 0.13.0.dev302-g8ed48
  • version: 0.13.0.dev302

dataset

  • id: c7947854-c845-11ea-8e05-87261519fb0a
  • metadata: <SENSITIVE, report disabled by configuration>
  • path: /home/yoh/proj/repronim/demo-study
  • repo: AnnexRepo

dependencies

  • annexremote: 1.4.3
  • appdirs: 1.4.3
  • boto: 2.49.0
  • cmd:7z: 16.02
  • cmd:annex: 8.20200617+git192-g5849bd634-1~ndall+1
  • cmd:bundled-git: 2.24.0
  • cmd:git: 2.24.0
  • cmd:system-git: 2.27.0
  • cmd:system-ssh: 8.1p1
  • exifread: 2.1.2
  • git: 3.1.0
  • gitdb: 4.0.2
  • humanize: 2.3.0
  • iso8601: 0.1.12
  • keyring: 18.0.1
  • keyrings.alt: 3.4.0
  • msgpack: 0.6.2
  • mutagen: 1.40.0
  • requests: 2.23.0
  • tqdm: 4.43.0
  • wrapt: 1.11.2

environment

  • GIT_PAGER: less --no-init --quit-if-one-screen
  • LANG: en_US.UTF-8
  • PATH: /home/yoh/proj/datalad/datalad-container/venvs/dev3/bin:/home/yoh/gocode/bin:/home/yoh/gocode/bin:/home/yoh/bin:/home/yoh/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/usr/local/sbin

extensions

  • container:
    • description: Containerized environments
    • entrypoints:
      • datalad_container.containers_add.ContainersAdd:
        • class: ContainersAdd
        • load_error: None
        • module: datalad_container.containers_add
        • names:
          • containers-add
          • containers_add
      • datalad_container.containers_list.ContainersList:
        • class: ContainersList
        • load_error: None
        • module: datalad_container.containers_list
        • names:
          • containers-list
          • containers_list
      • datalad_container.containers_remove.ContainersRemove:
        • class: ContainersRemove
        • load_error: None
        • module: datalad_container.containers_remove
        • names:
          • containers-remove
          • containers_remove
      • datalad_container.containers_run.ContainersRun:
        • class: ContainersRun
        • load_error: None
        • module: datalad_container.containers_run
        • names:
          • containers-run
          • containers_run
    • load_error: None
    • module: datalad_container
    • version: 1.0.1

git-annex

  • build flags:
    • Assistant
    • Webapp
    • Pairing
    • S3
    • WebDAV
    • Inotify
    • DBus
    • DesktopNotify
    • TorrentParser
    • MagicMime
    • Feeds
    • Testsuite
  • dependency versions:
    • aws-0.20
    • bloomfilter-2.0.1.0
    • cryptonite-0.25
    • DAV-1.3.3
    • feed-1.0.0.0
    • ghc-8.4.4
    • http-client-0.5.13.1
    • persistent-sqlite-2.8.2
    • torrent-10000.1.1
    • uuid-1.3.13
    • yesod-1.6.0
  • key/value backends:
    • SHA256E
    • SHA256
    • SHA512E
    • SHA512
    • SHA224E
    • SHA224
    • SHA384E
    • SHA384
    • SHA3_256E
    • SHA3_256
    • SHA3_512E
    • SHA3_512
    • SHA3_224E
    • SHA3_224
    • SHA3_384E
    • SHA3_384
    • SKEIN256E
    • SKEIN256
    • SKEIN512E
    • SKEIN512
    • BLAKE2B256E
    • BLAKE2B256
    • BLAKE2B512E
    • BLAKE2B512
    • BLAKE2B160E
    • BLAKE2B160
    • BLAKE2B224E
    • BLAKE2B224
    • BLAKE2B384E
    • BLAKE2B384
    • BLAKE2BP512E
    • BLAKE2BP512
    • BLAKE2S256E
    • BLAKE2S256
    • BLAKE2S160E
    • BLAKE2S160
    • BLAKE2S224E
    • BLAKE2S224
    • BLAKE2SP256E
    • BLAKE2SP256
    • BLAKE2SP224E
    • BLAKE2SP224
    • SHA1E
    • SHA1
    • MD5E
    • MD5
    • WORM
    • URL
  • local repository version: 8
  • operating system: linux x86_64
  • remote types:
    • git
    • gcrypt
    • p2p
    • S3
    • bup
    • directory
    • rsync
    • web
    • bittorrent
    • webdav
    • adb
    • tahoe
    • glacier
    • ddar
    • git-lfs
    • hook
    • external
  • supported repository versions:
    • 8
  • upgrade supported from repository versions:
    • 0
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
  • version: 8.20200617+git192-g5849bd634-1~ndall+1

location

  • path: /home/yoh/proj/repronim/demo-study
  • type: dataset

metadata_extractors

  • annex:
    • load_error: None
    • module: datalad.metadata.extractors.annex
    • version: None
  • audio:
    • load_error: None
    • module: datalad.metadata.extractors.audio
    • version: None
  • datacite:
    • load_error: None
    • module: datalad.metadata.extractors.datacite
    • version: None
  • datalad_core:
    • load_error: None
    • module: datalad.metadata.extractors.datalad_core
    • version: None
  • datalad_rfc822:
    • load_error: None
    • module: datalad.metadata.extractors.datalad_rfc822
    • version: None
  • exif:
    • load_error: None
    • module: datalad.metadata.extractors.exif
    • version: None
  • frictionless_datapackage:
    • load_error: None
    • module: datalad.metadata.extractors.frictionless_datapackage
    • version: None
  • image:
    • load_error: cannot import name '_imaging' from 'PIL' (/usr/lib/python3/dist-packages/PIL/init.py) [Image.py::69]
    • module: datalad.metadata.extractors.image
  • xmp:
    • load_error: No module named 'libxmp' [xmp.py::20]
    • module: datalad.metadata.extractors.xmp

python

  • implementation: CPython
  • version: 3.7.3rc1

system

  • distribution: debian/bullseye/sid
  • encoding:
    • default: utf-8
    • filesystem: utf-8
    • locale.prefered: UTF-8
  • max_path_length: 290
  • name: Linux
  • release: 5.6.0-1-amd64
  • type: posix
  • version: Metadata extractor for singularity/docker images #1 SMP Debian 5.6.7-1 (2020-04-29)
@kyleam
Copy link
Contributor

kyleam commented Nov 17, 2020

Hmm, I'm not sure what to do on our end. You'd see the same behavior using docker run directly:

docker run --rm -i alpine md5sum
^C^C^C^C^C^C^C^C^C^C^Cd41d8cd98f00b204e9800998ecf8427e  -

I had to docker stop that container explicitly to get rid of this

Note that ^D (EOT) should work.

@yarikoptic yarikoptic added the docker Issues relating to docker support label Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker Issues relating to docker support
Projects
None yet
Development

No branches or pull requests

2 participants