Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
Fix docker image name. (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikurt authored Sep 21, 2023
1 parent 1cb60fb commit 4bbfd1d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,15 @@ nearup run betanet --help
### Building the docker image

```
docker build . -t nearprotocol/nearup
docker build . -t nearup/nearprotocol
```

### Pull the docker image

If you don't want to build a docker image locally, you can pull the `latest` from Docker Hub,

```
docker pull nearprotocol/nearup
docker pull nearup/nearprotocol
```

### Running `nearup` with Docker
Expand All @@ -146,15 +146,15 @@ docker pull nearprotocol/nearup
To run the `nearup` docker image run:

```
docker run -v $HOME/.near:/root/.near -p 3030:3030 --name nearup nearprotocol/nearup run betanet
docker run -v $HOME/.near:/root/.near -p 3030:3030 --name nearup nearup/nearprotocol run betanet
```

#### Running in detached mode

To run `nearup` in docker's detached (non-blocking) mode, you can add `-d` to the `docker run` command,

```
docker run -v $HOME/.near:/root/.near -p 3030:3030 -d --name nearup nearprotocol/nearup run betanet
docker run -v $HOME/.near:/root/.near -p 3030:3030 -d --name nearup nearup/nearprotocol run betanet
```

### Check if the container is running
Expand Down Expand Up @@ -211,13 +211,13 @@ docker kill nearup
To build a development image:

```
docker build . -t nearprotocol/nearup:dev
docker build . -t nearup/nearprotocol:dev
```

The following will mount your repo directory into the running container and drop you into a shell to run test commands.

```
docker run -it --entrypoint "" -v $PWD:/root/nearup -v $HOME/.near:/root/.near -w /root/nearup nearprotocol/nearup:dev bash
docker run -it --entrypoint "" -v $PWD:/root/nearup -v $HOME/.near:/root/.near -w /root/nearup nearup/nearprotocol:dev bash
```

### Common commands
Expand Down

0 comments on commit 4bbfd1d

Please sign in to comment.