What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

hi guys, I am getting this error when I try to run `docker/sdk bootstrap` for the first time File

2

Comments

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    one more thing :

    when I first run the command it complained that I have docker-compose version 2 and that I should have at least 1.22 πŸ˜… , I found out that I have another docker-compose command : docker-compose-v1 so I did mv docker-compose docker-compose-v2 and mv docker-compose-v1 docker-compose does this look ok ?

  • USZ0XG6SK
    USZ0XG6SK Posts: 111 πŸ§‘πŸ»β€πŸš€ - Cadet

    You can disable docker compose v2.
    Open docker preferences and you should see β€œdisable docker compose v2” or something similar

  • USZ0XG6SK
    USZ0XG6SK Posts: 111 πŸ§‘πŸ»β€πŸš€ - Cadet

    or using cli

    docker-compose disable-v2
    
  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    thanks I will try this

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    Yep, there is a checkbox in the Docker Desktop to use composer v2.

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    Thank you very much I will look at it

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    Hi @valerii.trots
    I am getting this error when I try to start

    Elastica\Exception\Connection\HttpException - Exception: Couldn't connect to host, Elasticsearch down? 
    in /data/vendor/ruflin/elastica/lib/Elastica/Transport/Http.php (190)
    
    Command: vendor/bin/console search:setup:sources
    
  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    I saw this but it talks about Exception: Couldn't resolve host not Exception: Couldn't connect to host, Elasticsearch down? any clue?

  • USZ0XG6SK
    USZ0XG6SK Posts: 111 πŸ§‘πŸ»β€πŸš€ - Cadet

    @UM9F81RCP make sure that you gave Docker enough resources to start all containers.

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    I cannot give 14GB Ram!! hahah

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    I have 16 only

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    I gave 6 of them to docker

  • USZ0XG6SK
    USZ0XG6SK Posts: 111 πŸ§‘πŸ»β€πŸš€ - Cadet

    well, you don’t need so much, but as much as you can

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    btw I dont see a container for elastic search .. which one is it?

  • USZ0XG6SK
    USZ0XG6SK Posts: 111 πŸ§‘πŸ»β€πŸš€ - Cadet

    it is probably not running because it couldn’t start. Try giving docker more resources, restart the daemon and try docker/sdk up again

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    but in this case it should show an error?

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    I dont see errors

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    I copied the docker.dev.yaml as is without change from b2b demo shop code

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    both store and service are defined

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    oh btw I found the search container

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    but there are no errors in the log

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    can I run something like verndor/bin/install

    I remember that we could something like that in gateway container but how?

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    docker/sdk cli and there you will be able to run any console commands.
    But workflows are a bit different in docker env.

    For example you can just "reset" demo data by running docker/sdk demo.
    Or build the project after you checked out other branch by running docker/sdk build.
    Or reset the project completely (like vendor/bin/install) by running docker/sdk reset.

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    hmm thanks

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    I will try to do some debugging

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    it looks like the configs got mixed because I included a file in the docker config that shulld not be there

  • UM9F81RCP
    UM9F81RCP Posts: 516 πŸ§‘πŸ»β€πŸš€ - Cadet

    but now I get an exception
    Elastica\Exception\ResponseException - Exception: Root mapping definition has unsupported parameters: