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

Fix docker image name #235

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading