hexagonal-sun / bic

A C interpreter and API explorer.
GNU General Public License v2.0
815 stars 36 forks source link

quick docker file #19

Closed vxe closed 5 years ago

hexagonal-sun commented 5 years ago

Hi there,

Many thanks for the PR! Just a quick question:

I've built this using your docker file with:

sudo docker build https://github.com/vxe/bic.git#dockerfile

This built successfully, but when I run:

sudo docker run bic

I get:

Unable to find image 'bic:latest' locally
docker: Error response from daemon: pull access denied for bic, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.

Apologies if this is a silly comment, I've never used docker before.

hexagonal-sun commented 5 years ago

Okay - I've managed to fix this after running:

sudo docker build -t bic https://github.com/vxe/bic.git#dockerfile

Looks like I needed to give it a tag. However, when I now run:

sudo docker run bic

I get bic's prompt for a brief moment but then it closes and returns me to my shell prompt:

 matthew@hopton ~ $ sudo docker run bic
BIC> matthew@hopton ~ $ 

Any ideas?

Thanks!

hexagonal-sun commented 5 years ago

Ah, looks as though I needed to add the -i option for docker run. Merged. Thanks!

CraigCarey commented 4 years ago

You shouldn't need sudo for docker btw, add yourself to the docker group