# Install Sui With Docker

By [poemiao](https://paragraph.com/@poemo) · 2022-10-31

---

Set up
------

Follow the steps below to build a Docker container that contains the sui development environment, provided that you need to install Docker and ssh

*   build image
    
*   start docker container
    
*   connect docker container with ssh
    

### Install Docker(if need)

refer to [docker doc](https://docs.docker.com/engine/install/) to install

### Build Image

    wget https://raw.githubusercontent.com/miaoec/sui-dev-docker/main/Dockerfile
    docker build -f Dockerfile --build-arg  USER=${USER} PASSW={PASSW}  -t sui-dev:latest . 
    #Example
    
    #docker build -f Dockerfile  --build-arg  USER="root" PASSW="root"   -t sui-dev:latest . 
    

### Start Docker Container

    docker run  -dit  -p 56000:22  --privileged sui-dev:latest
    

Using the Sui-dev Container
---------------------------

### Connect Docker With SSH

    ssh ${USER}@${HOST_IP} -p 56000
    

### Connect Container With Vscode

refer to [vscode doc](https://code.visualstudio.com) and vscode-extention [ms-vscode-remote.remote-ssh doc](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-ssh) to install

---

*Originally published on [poemiao](https://paragraph.com/@poemo/install-sui-with-docker)*
