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

ошибки установки #23

Open
sevatrofimov opened this issue Feb 19, 2021 · 6 comments
Open

ошибки установки #23

sevatrofimov opened this issue Feb 19, 2021 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@sevatrofimov
Copy link

Не удается установить по инструкции ни вручную ни через docker. Нет ли образа работающей виртуалки?

с докером выглядит так:
(base) root@pykaldi:# docker pull ghcr.io/sergeyshk/stt-ru:0.2.0
0.2.0: Pulling from sergeyshk/stt-ru
Digest: sha256:f0fc5970bedf27a54c88b84382bf96bb448499caf1abce5c5cccd199bbe7a524
Status: Image is up to date for ghcr.io/sergeyshk/stt-ru:0.2.0
ghcr.io/sergeyshk/stt-ru:0.2.0
(base) root@pykaldi:
# docker volume create -d local -o type=none -o o=bind -o device=[DIR] asr_volume
asr_volume
(base) root@pykaldi:~# docker run -it --rm -p 9000:9000 -p 5000:5000 -v asr_volume:/archive speech_recognition
Unable to find image 'speech_recognition:latest' locally

@SergeyShk SergeyShk added the question Further information is requested label Feb 19, 2021
@SergeyShk SergeyShk self-assigned this Feb 19, 2021
@SergeyShk
Copy link
Owner

Попробуйте так:

docker pull ghcr.io/sergeyshk/stt-ru:0.2.0
docker run -it --rm -p 9000:9000 -p 5000:5000 -v asr_volume:/archive ghcr.io/sergeyshk/stt-ru:0.2.0

@sevatrofimov
Copy link
Author

sevatrofimov commented Feb 19, 2021

(base) root@pykaldi:~# docker pull ghcr.io/sergeyshk/stt-ru:0.2.0
0.2.0: Pulling from sergeyshk/stt-ru
Digest: sha256:f0fc5970bedf27a54c88b84382bf96bb448499caf1abce5c5cccd199bbe7a524
Status: Image is up to date for ghcr.io/sergeyshk/stt-ru:0.2.0
ghcr.io/sergeyshk/stt-ru:0.2.0
(base) root@pykaldi:~# docker run -it --rm -p 9000:9000 -p 5000:5000 -v asr_volume:/archive ghcr.io/sergeyshk/stt-ru:0.2.0
docker: Error response from daemon: error while mounting volume '/var/lib/docker/volumes/asr_volume/_data': failed to mount local volume: mount [DIR]:/var/lib/docker/volumes/asr_volume/_data, flags: 0x1000: no such file or directory.
(base) root@pykaldi:~# 

@SergeyShk
Copy link
Owner

docker volume create -d local -o type=none -o o=bind -o device=[DIR] asr_volume

Здесь вместо [DIR] надо указывать локальную папку, которая будет примонтирована к волуму.

@sevatrofimov
Copy link
Author

sevatrofimov commented Mar 2, 2021

вот так сработало

(base) root@pykaldi:~# docker volume create -d local -o type=none -o o=bind -o device=/var/pykaldi asr_volume
asr_volume

а дальше

docker run -it --rm -p 9000:9000 -p 5000:5000 -v asr_volume:/archive ghcr.io/sergeyshk/stt-ru:0.2.0
docker: Error response from daemon: error while mounting volume '/var/lib/docker/volumes/asr_volume/_data': failed to mount local volume: mount [DIR]:/var/lib/docker/volumes/asr_volume/_data, flags: 0x1000: no such file or directory.

@dojekon
Copy link

dojekon commented Jan 15, 2022

Точно такая же ситуация, просьба дать подробные инструкции - какую конкретно папку нужно указывать вместо [DIR]

@KanonRim
Copy link

KanonRim commented Jul 6, 2023

Точно такая же ситуация, просьба дать подробные инструкции - какую конкретно папку нужно указывать вместо [DIR]

Любую например текущую .
Также стоит удалить созданную до этого командой
docker volume rm asr_volume
После чего создать
docker volume create -d local -o type=none -o o=bind -o device=. asr_volume

После чего выполнить
docker run -it --rm -p 9000:9000 -p 5000:5000 -v asr_volume:/archive ghcr.io/sergeyshk/stt-ru:0.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants