Update docker.zsh to check if a user is in a docker container
matchai opened this issue ยท 1 comments
matchai commented
๐ spacefish-bot โ Pull request copied from: spaceship-prompt/spaceship-prompt#531.
updated to return docker info when /.dockerenv file exists
Description
I'm a heavy docker user and I was embarrassed about I had to create Dockerfile or docker...yml file
for all the directories that I have to move around.
When docker container is created, /.dockerenv file is created at the same time.
This file would be good for checking whether an user is in docker container
- user must connect /usr/var/docker.sock when run the container
e.g. docker run -v /usr/var/docker.sock:/usr/var/docker.sock
matchai commented
๐ This issue has been resolved in version 2.1.0 ๐
The release is available on GitHub release
Your semantic-release bot ๐ฆ๐