Once you've pulled a Docker image, you can run within a container. You can think of containers as the virtual machine that's running the image you pulled. When a container is initialized and run, it's given a unique hash and a unique string name. When you want to access the container, you refer to its unique hash/string. You can also give your container a unique name, as domonstraited below:
Once you've pulled a Docker image, you can run within a container. You can think of containers as the virtual machine that's running the image you pulled. When a container is initialized and run, it's given a unique hash and a unique string name. When you want to access the container, you refer to its unique hash/string. You can also give your container a unique name, as demonstrated below:
> **NOTE:** `--privileged` is only required when using FireMarshal.
> **NOTE:** `--privileged` is only required when using FireMarshal.
- Running a Docker container interactively
- Running a Docker container interactively
- This runs the Docker container and attaches the console of your container
- This runs the Docker container and attaches the console of your container
```
```
docker run [--privileged] [--name CUSTOM_CONTAINER_NAME] -it socks.lbl.gov:4567/cag/bxe
docker run [--privileged] [--name CUSTOM_CONTAINER_NAME] -it socks.lbl.gov:4567/cag/bxe/firesim
```
```
- Running a Docker container and attaching later
- Running a Docker container and attaching later
- You can run a Docker container in the background and attach to it
- You can run a Docker container in the background and attach to it
```
```
docker run [--privileged] [--name CUSTOM_CONTAINER_NAME] socks.lbl.gov:4567/cag/bxe
docker run [--privileged] [--name CUSTOM_CONTAINER_NAME] socks.lbl.gov:4567/cag/bxe/firesim
Any changes made in `/app` in the Docker container are reflected in `/tmp/mpoint` on the host. You can mount multiple directories with multiple `-v [HOSTDIR]:[CONTAINERDIR]` flags with the different mounts.``
Any changes made in `/app` in the Docker container are reflected in `/tmp/mpoint` on the host. You can mount multiple directories with multiple `-v [HOSTDIR]:[CONTAINERDIR]` flags with the different mounts.``
...
@@ -89,21 +90,19 @@ Once you've run and attached to your Docker container, you should see the follow
...
@@ -89,21 +90,19 @@ Once you've run and attached to your Docker container, you should see the follow
(base) root@[HASHID]:~/firesim#
(base) root@[HASHID]:~/firesim#
```
```
Run the following command to set up the Chipyard and FireMarshal environment:
Run the following commands to set up the Chipyard and FireMarshal environment:
```bash
```bash
source source-env.sh
conda activate firesim
source sourceme-manager.sh --skip-ssh-setup
```
```
You should see the following output on your console:
You should see the following output on your console: